From: Jonas Fonseca Date: Wed, 2 Jun 2010 20:07:08 +0000 (-0400) Subject: Mark the argument array as freed in argv_free X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b2d063f47427490f4a605ccc708cdfab522f9d9;p=tig.git Mark the argument array as freed in argv_free --- diff --git a/tig.c b/tig.c index a9924c9..f842de5 100644 --- a/tig.c +++ b/tig.c @@ -685,6 +685,7 @@ argv_free(const char *argv[]) for (argc = 0; argv[argc]; argc++) free((void *) argv[argc]); + argv[0] = NULL; } static void