Procházet zdrojové kódy

- fix/improvement: the cmd line option '-c' returns -1, no matter if config is
OK or not, making it difficult to use from start scripts that want to check
the config first. Now it returns 0 if the config is ok.i
Patch from Bogdan Pintea <[email protected]>.
Closes SER-336.

Andrei Pelinescu-Onciul před 17 roky
rodič
revize
51e93de702
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -1626,7 +1626,7 @@ try_again:
 	}
 	if (config_check){
 		fprintf(stderr, "config file ok, exiting...\n");
-		goto error;
+		return 0;
 	}