]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
bug corrected : read_opt fixed.
authorThibault Godouet <yo8192@users.noreply.github.com>
Mon, 15 Jan 2001 18:57:38 +0000 (18:57 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Mon, 15 Jan 2001 18:57:38 +0000 (18:57 +0000)
fileconf.c

index 15e8a83efca3073180f606664e9097db35aca40d..2764378ba484220d49788ec6bedbf1c4aeb949e4 100644 (file)
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: fileconf.c,v 1.34 2001-01-15 18:46:13 thib Exp $ */
+ /* $Id: fileconf.c,v 1.35 2001-01-15 18:57:38 thib Exp $ */
 
 #include "fcrontab.h"
 
@@ -662,7 +662,7 @@ read_opt(char *ptr, CL *cl)
                fprintf(stderr, "  Opt : \"%s\"\n", opt_name);
        }
 
-       if ( strcmp(opt_name, "strict") == 0 ) {
+       else if ( strcmp(opt_name, "strict") == 0 ) {
            if ( in_brackets && (ptr = get_bool(ptr, &i)) == NULL )
                Handle_err;
            if (i == 0 )
@@ -673,7 +673,7 @@ read_opt(char *ptr, CL *cl)
                fprintf(stderr, "  Opt : \"%s\" %d\n", opt_name, i);
        }
 
-       if ( strcmp(opt_name, "noticenotrun") == 0 ) {
+       else if ( strcmp(opt_name, "noticenotrun") == 0 ) {
            if ( in_brackets && (ptr = get_bool(ptr, &i)) == NULL )
                Handle_err;
            if (i == 0 )