diff options
author | 2019-07-18 15:52:11 +0000 | |
---|---|---|
committer | 2019-07-18 15:52:11 +0000 | |
commit | b764efda0543b1b3bc5df86127045ddbd161641c (patch) | |
tree | be0629900e3bf1cdc19003ab2f4d56f4b884d570 | |
parent | Delete documentation of --max-count, which is merely an alias of (diff) | |
download | wireguard-openbsd-b764efda0543b1b3bc5df86127045ddbd161641c.tar.xz wireguard-openbsd-b764efda0543b1b3bc5df86127045ddbd161641c.zip |
The 'list' diff I committed this morning, was missing a couple of
calls to a clean-up variable function.
-rw-r--r-- | usr.bin/mg/extend.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mg/extend.c b/usr.bin/mg/extend.c index 477e6cd9172..0898da96798 100644 --- a/usr.bin/mg/extend.c +++ b/usr.bin/mg/extend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extend.c,v 1.70 2019/07/18 05:57:48 lum Exp $ */ +/* $OpenBSD: extend.c,v 1.71 2019/07/18 15:52:11 lum Exp $ */ /* This file is in the public domain. */ /* @@ -603,9 +603,12 @@ evalbuffer(int f, int n) /* make sure it's terminated */ excbuf[llength(lp)] = '\0'; - if ((s = excline(excbuf)) != TRUE) + if ((s = excline(excbuf)) != TRUE) { + (void) clearvars(); return (s); + } } + (void) clearvars(); return (TRUE); } |