mergetool: Don't keep temporary merge files unless told to
[gitweb.git] / builtin-branch.c
index 4b4abfd3639d2c6a1405e2e056ed5362b4b73abb..2b3613fea2d7799b7d20e9e30da20527d811ed64 100644 (file)
@@ -334,11 +334,10 @@ static void print_ref_item(struct ref_item *item, int maxwidth, int verbose,
        }
 
        if (verbose) {
-               struct strbuf subject;
+               struct strbuf subject = STRBUF_INIT;
                const char *sub = " **** invalid ref ****";
                char stat[128];
 
-               strbuf_init(&subject, 0);
                stat[0] = '\0';
 
                commit = item->commit;