From: Jason A. Donenfeld Date: Fri, 1 Dec 2017 18:42:46 +0000 (+0100) Subject: wg: no need to put this on the stack X-Git-Tag: v1.0.20191226~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f583209935a1dd728dc2708683e92207f53f36bb;p=thirdparty%2Fwireguard-tools.git wg: no need to put this on the stack Signed-off-by: Jason A. Donenfeld --- diff --git a/src/wg.c b/src/wg.c index c0171b6..97910ee 100644 --- a/src/wg.c +++ b/src/wg.c @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) } if (argc == 1) { - char *new_argv[] = { "show", NULL }; + static char *new_argv[] = { "show", NULL }; return show_main(1, new_argv); }