summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dee89f8)
raw | patch | inline | side by side (parent: dee89f8)
author | Tommie Gannert <tommie@spotify.com> | |
Thu, 7 Mar 2013 08:10:03 +0000 (09:10 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 25 Mar 2013 06:39:45 +0000 (07:39 +0100) |
isalnum() is not enough to catch the underscore.
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/utils_parse_option.c | patch | blob | history |
index 2168cd1af3d624801146905b853adb0c92db3d7b..820f14f58ef1da32cdfbe73c016c7fefdba4a0b0 100644 (file)
--- a/src/utils_parse_option.c
+++ b/src/utils_parse_option.c
/* Look for the equal sign */
buffer = key;
- while (isalnum ((int) *buffer))
+ while (isalnum ((int) *buffer) || *buffer == '_')
buffer++;
if ((*buffer != '=') || (buffer == key))
return (1);