Make option and block names case-sensitive
This is to avoid any issues with device names that can be case-sensitive, and strcasecmp not working properly for non-ASCII-7 uppercase characters.
This commit is contained in:
parent
5f40daabc2
commit
0eb83fe462
@ -483,7 +483,7 @@ const char *GetConfigValue(const char *devName, const char *blockName, const cha
|
|||||||
|
|
||||||
for(i = 0;i < cfgBlock.entryCount;i++)
|
for(i = 0;i < cfgBlock.entryCount;i++)
|
||||||
{
|
{
|
||||||
if(strcasecmp(cfgBlock.entries[i].key, key) == 0)
|
if(strcmp(cfgBlock.entries[i].key, key) == 0)
|
||||||
{
|
{
|
||||||
TRACE("Found %s = \"%s\"\n", key, cfgBlock.entries[i].value);
|
TRACE("Found %s = \"%s\"\n", key, cfgBlock.entries[i].value);
|
||||||
if(cfgBlock.entries[i].value[0])
|
if(cfgBlock.entries[i].value[0])
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
# specific override settings in $HOME/.alsoftrc.
|
# specific override settings in $HOME/.alsoftrc.
|
||||||
# For Windows, these settings should go into $AppData\alsoft.ini
|
# For Windows, these settings should go into $AppData\alsoft.ini
|
||||||
#
|
#
|
||||||
# Option and block names are case-insenstive. The supplied values are only
|
# Option and block names are case-senstive. The supplied values are only hints
|
||||||
# hints and may not be honored (though generally it'll try to get as close as
|
# and may not be honored (though generally it'll try to get as close as
|
||||||
# possible). Note: options that are left unset may default to app- or system-
|
# possible). Note: options that are left unset may default to app- or system-
|
||||||
# specified values. These are the current available settings:
|
# specified values. These are the current available settings:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user