From 9935c80c0e1791447a29db658ef31bd11ff41b77 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 23 Jan 2021 22:32:16 +0000 Subject: bugfix: exlsn_exlp must not choke on 0 args --- src/libexecline/exlsn_exlp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libexecline/exlsn_exlp.c b/src/libexecline/exlsn_exlp.c index 3a2e24b..cc4ecf6 100644 --- a/src/libexecline/exlsn_exlp.c +++ b/src/libexecline/exlsn_exlp.c @@ -20,7 +20,6 @@ int exlsn_exlp (int argc, char const **argv, char const *const *envp, exlsn_t *i } } argc -= localopt.ind ; argv += localopt.ind ; - if (!argc) return -3 ; n = exlp(nmin, envp, info) ; if (n < 0) return n ; return localopt.ind ; -- cgit v1.2.3