Selaa lähdekoodia

- 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 17 vuotta sitten
vanhempi
commit
51e93de702
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
 	}