r16720: Fix bug #3874 (warning) reported by Jason Mader.
authorJeremy Allison <jra@samba.org>
Sat, 1 Jul 2006 01:03:01 +0000 (01:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:09 +0000 (11:19 -0500)
Jeremy.
(This used to be commit 0606c954668a7bbc08e2338e268405981aa0ad04)

source3/popt/popt.c

index ce3687fb64e99e1eff4e48e7927f4711eb115c18..45a8778b55f441789ee0945e7a6eb2e40eff6d53 100644 (file)
@@ -443,8 +443,12 @@ if (_popt_debug)
 #endif
 
     rc = execvp(argv[0], (char *const *)argv);
-
-    return POPT_ERROR_ERRNO;
+    /* notreached */
+    if (rc) {
+        return POPT_ERROR_ERRNO;
+    }
+    return 0;
 }
 /*@=bounds =boundswrite @*/