invalidate_ref_cache(): take the submodule as parameter
[gitweb.git] / builtin / revert.c
index ba27cf15ee5478981a0a9a53493f41b67fcf9440..200149e2e78525d34f04eb29752453561faf5d88 100644 (file)
@@ -110,7 +110,7 @@ static void verify_opt_compatible(const char *me, const char *base_opt, ...)
 
 static void verify_opt_mutually_compatible(const char *me, ...)
 {
-       const char *opt1, *opt2;
+       const char *opt1, *opt2 = NULL;
        va_list ap;
 
        va_start(ap, me);