summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2019-07-18 15:52:11 +0000
committerlum <lum@openbsd.org>2019-07-18 15:52:11 +0000
commitb764efda0543b1b3bc5df86127045ddbd161641c (patch)
treebe0629900e3bf1cdc19003ab2f4d56f4b884d570
parentDelete documentation of --max-count, which is merely an alias of (diff)
downloadwireguard-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.c7
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);
}