Explorar o código

- 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 %!s(int64=17) %!d(string=hai) anos
pai
achega
51e93de702
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	}