From: Tommie Gannert Date: Thu, 7 Mar 2013 08:10:03 +0000 (+0100) Subject: Allow parsing plugin_instance in parse_option(). X-Git-Tag: collectd-4.10.9~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ecdfcecbc70b51de12ed695fbace42e6076473c1;p=collectd.git Allow parsing plugin_instance in parse_option(). isalnum() is not enough to catch the underscore. Signed-off-by: Florian Forster --- 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);