Code

Mark the argument array as freed in argv_free
authorJonas Fonseca <jonas.fonseca@savoirfairelinux.com>
Wed, 2 Jun 2010 20:07:08 +0000 (16:07 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 3 Jun 2010 01:15:51 +0000 (21:15 -0400)
tig.c

diff --git a/tig.c b/tig.c
index a9924c91a7192d6745440f17124e044d4dda6017..f842de567b03108f63dbfe44f3ec7af3bed82a9d 100644 (file)
--- 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