commit, merge: initialize static strbuf
[gitweb.git] / builtin-merge.c
index 8825dcf8d9c4cce3fa0321a808877237d05d4f5a..49e9115ec449eb4b8b38d9391496b5640c403118 100644 (file)
@@ -42,7 +42,7 @@ static const char * const builtin_merge_usage[] = {
 static int show_diffstat = 1, option_log, squash;
 static int option_commit = 1, allow_fast_forward = 1;
 static int allow_trivial = 1, have_message;
-static struct strbuf merge_msg;
+static struct strbuf merge_msg = STRBUF_INIT;
 static struct commit_list *remoteheads;
 static unsigned char head[20], stash[20];
 static struct strategy **use_strategies;