X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_parse_option.c;h=820f14f58ef1da32cdfbe73c016c7fefdba4a0b0;hb=ecdfcecbc70b51de12ed695fbace42e6076473c1;hp=2168cd1af3d624801146905b853adb0c92db3d7b;hpb=dee89f856ffba3fcfccf530cd98f4d515bb46728;p=collectd.git diff --git a/src/utils_parse_option.c b/src/utils_parse_option.c index 2168cd1a..820f14f5 100644 --- a/src/utils_parse_option.c +++ b/src/utils_parse_option.c @@ -127,7 +127,7 @@ int parse_option (char **ret_buffer, char **ret_key, char **ret_value) /* Look for the equal sign */ buffer = key; - while (isalnum ((int) *buffer)) + while (isalnum ((int) *buffer) || *buffer == '_') buffer++; if ((*buffer != '=') || (buffer == key)) return (1);