replaced 'missing value' warning by zero length chunk_t value
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 25 Sep 2006 06:18:45 +0000 (06:18 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 25 Sep 2006 06:18:45 +0000 (06:18 -0000)
src/libstrongswan/utils/lexparser.c

index c09da14..13fe35e 100644 (file)
@@ -98,7 +98,8 @@ err_t extract_value(chunk_t *value, chunk_t *line)
 
        if (!eat_whitespace(line))
        {
-               return "missing value";
+               *value = CHUNK_INITIALIZER;
+               return NULL;
        }
        if (*line->ptr == '\'' || *line->ptr == '"')
        {