From ecdfcecbc70b51de12ed695fbace42e6076473c1 Mon Sep 17 00:00:00 2001 From: Tommie Gannert Date: Thu, 7 Mar 2013 09:10:03 +0100 Subject: [PATCH] Allow parsing plugin_instance in parse_option(). isalnum() is not enough to catch the underscore. Signed-off-by: Florian Forster --- src/utils_parse_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0