X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_parse_option.c;h=820f14f58ef1da32cdfbe73c016c7fefdba4a0b0;hb=5f0744209517883b1a3b5f8fd269734bbed1efd3;hp=2168cd1af3d624801146905b853adb0c92db3d7b;hpb=6597f3a6584704f92f824f3cf7bac3369102e8a0;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);