diff src/run.combined.c @ 61:66d9d80215f0

Fixed -h and -v return status, fixed source file permissions (thanks github.com/rotty)
author Ivo Smits <Ivo@UFO-Net.nl>
date Wed, 04 Jan 2017 21:42:38 +0100
parents 5685fad38195
children
line wrap: on
line diff
--- a/src/run.combined.c	Mon Jul 04 11:59:12 2016 +0200
+++ b/src/run.combined.c	Wed Jan 04 21:42:38 2017 +0100
@@ -50,7 +50,8 @@
 #else
 	getconf = getenv;
 #endif
-	if (qtprocessargs(argc, argv) < 0) return -1;
+	int rc = qtprocessargs(argc, argv);
+	if (rc <= 0) return rc;
 	char* envval;
 	if ((envval = getconf("PROTOCOL"))) {
 		if (strcmp(envval, "raw") == 0) {