]> granicus.if.org Git - fcron/commitdiff
only check for erroneous space if option takes an argument
authorThibault Godouet <fcron@free.fr>
Thu, 20 Dec 2012 21:48:43 +0000 (21:48 +0000)
committerThibault Godouet <fcron@free.fr>
Thu, 20 Dec 2012 21:48:43 +0000 (21:48 +0000)
fileconf.c

index 795812a993ada8e22480c92bdcb34e371737dd6e..ced31d532c88f3aabcd88714c26648ae85e30735 100644 (file)
@@ -512,11 +512,11 @@ read_opt(char *ptr, cl_t *cl)
        if ( *ptr == '(' ) {
            in_brackets = 1;
            ptr++;
-       }
 
-       /* spaces are not allowed -- make sure there is no leading space. */
-       if ( isspace( (int) *ptr) ) {
-               Handle_err;
+            /* spaces are not allowed -- make sure there is no leading space. */
+            if ( isspace( (int) *ptr) ) {
+                Handle_err;
+            }
        }
 
        /* global options for a file */