diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-11 08:32:05 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-04-11 08:32:05 +0000 |
commit | 917fe3fa612dc457f2e561c6cae0d7c2cbf895dc (patch) | |
tree | 9b39ad1044bb15ea9cc70e507c92fb7579c2bba3 /src/libexecline/exlsn_multidefine.c | |
parent | 68619a9de71e9ee26bca3b6a86b22c11e720b91d (diff) | |
download | execline-917fe3fa612dc457f2e561c6cae0d7c2cbf895dc.tar.xz |
bugfix: catch empty blocks in multidefine
Diffstat (limited to 'src/libexecline/exlsn_multidefine.c')
-rw-r--r-- | src/libexecline/exlsn_multidefine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexecline/exlsn_multidefine.c b/src/libexecline/exlsn_multidefine.c index bf50087..c28d926 100644 --- a/src/libexecline/exlsn_multidefine.c +++ b/src/libexecline/exlsn_multidefine.c @@ -41,6 +41,7 @@ int exlsn_multidefine (int argc, char const **argv, char const *const *envp, exl x = argv[0] ; argv++ ; argc-- ; argc1 = el_semicolon(argv) ; + if (!argc1) return -4 ; if (argc1 >= argc) return -3 ; if (!stralloc_cats(&info->values, x)) return -1 ; { |