aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 09:32:09 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 09:32:09 +0200
commitb2924405ae1d89e36a417cc43aaeba7a720f1290 (patch)
tree43dfbcd6ad7edca31b2eb6de5032e54e64f07cfd /src
parentb1c177528fdc601496dac735ff9839ed6438e992 (diff)
downloadmpd-b2924405ae1d89e36a417cc43aaeba7a720f1290.tar.gz
mpd-b2924405ae1d89e36a417cc43aaeba7a720f1290.tar.xz
mpd-b2924405ae1d89e36a417cc43aaeba7a720f1290.zip
conf: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
Diffstat (limited to 'src')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 6f3c9ace7..608b4804b 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -59,11 +59,11 @@ static int get_bool(const char *value)
static const char *f[] = { "no", "false", "0", NULL };
for (x = t; *x; x++) {
- if (!strcasecmp(*x, value))
+ if (!g_ascii_strcasecmp(*x, value))
return 1;
}
for (x = f; *x; x++) {
- if (!strcasecmp(*x, value))
+ if (!g_ascii_strcasecmp(*x, value))
return 0;
}
return CONF_BOOL_INVALID;