Make option lowercasing C89 compliant
This commit is contained in:
parent
2826271bf0
commit
4bb62af458
@ -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);
|
||||
|
Reference in New Issue
Block a user