From: Thibault Godouet Date: Thu, 20 Dec 2012 21:48:43 +0000 (+0000) Subject: only check for erroneous space if option takes an argument X-Git-Tag: ver3_1_1~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df3c7abcd8ca9d9eaebb06d983a4f257d5fdeaad;p=thirdparty%2Ffcron.git only check for erroneous space if option takes an argument --- diff --git a/fileconf.c b/fileconf.c index 795812a..ced31d5 100644 --- a/fileconf.c +++ b/fileconf.c @@ -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 */