Make option lowercasing C89 compliant

This commit is contained in:
Jason Perkins 2013-09-09 13:53:10 -04:00
parent 2826271bf0
commit 4bb62af458

View File

@ -279,7 +279,7 @@ int process_option(lua_State* L, const char* arg)
}
/* Make keys lowercase to avoid case issues */
for (char* p = key; *p; ++p) { *p = tolower(*p); }
for (ptr = key; *ptr; ++ptr) { *ptr = tolower(*ptr); }
/* Store it in the Options table, which is already on the stack */
lua_pushstring(L, value);