summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-01-23 22:32:16 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-01-23 22:32:16 +0000
commit9935c80c0e1791447a29db658ef31bd11ff41b77 (patch)
tree43b74bdbcec08c3a79048b251f82e9791695a487
parentfc28e9e36e11702324d278ae7857053da7420e87 (diff)
downloadexecline-9935c80c0e1791447a29db658ef31bd11ff41b77.tar.xz
bugfix: exlsn_exlp must not choke on 0 args
-rw-r--r--src/libexecline/exlsn_exlp.c1
1 files changed, 0 insertions, 1 deletions
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 ;