revert: add missing va_end
authorChristian Couder <chriscool@tuxfamily.org>
Sat, 21 Apr 2012 21:15:19 +0000 (23:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Apr 2012 05:18:44 +0000 (22:18 -0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c

index 1ea525c10e4c00b66006bf46465ebd490823f25f..a022eadda37122b7916b063fbdd184b1d6435e7b 100644 (file)
@@ -129,6 +129,7 @@ static void verify_opt_mutually_compatible(const char *me, ...)
                                break;
                }
        }
+       va_end(ap);
 
        if (opt1 && opt2)
                die(_("%s: %s cannot be used with %s"), me, opt1, opt2);