diff options
Diffstat (limited to 'source3/popt/popt.c')
-rw-r--r-- | source3/popt/popt.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 @*/ |