]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg: no need to put this on the stack
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 1 Dec 2017 18:42:46 +0000 (19:42 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 3 Dec 2017 14:07:52 +0000 (15:07 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg.c

index c0171b6ed510e7b9c358ba15ed0c23b9061eba1b..97910ee84b01c4dc54b642c7cdf17867bc5158ac 100644 (file)
--- 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);
        }