From acebbb7cd98b55d913caeb78341cf84dfa7d9c81 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 1 Jul 2006 01:03:01 +0000 Subject: r16720: Fix bug #3874 (warning) reported by Jason Mader. Jeremy. (This used to be commit 0606c954668a7bbc08e2338e268405981aa0ad04) --- source3/popt/popt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source3/popt') diff --git a/source3/popt/popt.c b/source3/popt/popt.c index ce3687fb64..45a8778b55 100644 --- a/source3/popt/popt.c +++ b/source3/popt/popt.c @@ -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 @*/ -- cgit