Merge branch 'cc/fix-missing-va-end-in-revert'
authorJunio C Hamano <gitster@pobox.com>
Tue, 24 Apr 2012 21:41:16 +0000 (14:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Apr 2012 21:41:16 +0000 (14:41 -0700)
By Christian Couder
* cc/fix-missing-va-end-in-revert:
revert: add missing va_end

builtin/revert.c
index e6840f23dc9ee6d670bb6254bee074e58e818486..e4ed0239ca7cbc0f33f2cf02d6287e681ca535bf 100644 (file)
@@ -86,6 +86,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);