diff options
author | Max Kellermann <max@duempel.org> | 2009-04-28 09:32:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-28 09:32:38 +0200 |
commit | d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef (patch) | |
tree | 39ac71ab3a328611810335ad38c621eecb0836a9 /src/tag.c | |
parent | b2924405ae1d89e36a417cc43aaeba7a720f1290 (diff) | |
download | mpd-d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef.tar.gz mpd-d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef.tar.xz mpd-d3c93c1c77eaa8d4d3def73a04cba9f5bfa9c5ef.zip |
tag: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal
string comparisons.
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -89,7 +89,7 @@ void tag_lib_init(void) memset(ignore_tag_items, true, TAG_NUM_OF_ITEM_TYPES); - if (0 == strcasecmp(value, "none")) + if (0 == g_ascii_strcasecmp(value, "none")) return; temp = c = s = g_strdup(value); @@ -99,7 +99,7 @@ void tag_lib_init(void) quit = 1; *s = '\0'; for (i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) { - if (strcasecmp(c, tag_item_names[i]) == 0) { + if (g_ascii_strcasecmp(c, tag_item_names[i]) == 0) { ignore_tag_items[i] = false; break; } |