author | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Dec 2011 08:27:59 +0000 (00:27 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Dec 2011 08:28:16 +0000 (00:28 -0800) |
builtin/commit.c | patch | blob | history | |
builtin/merge.c | patch | blob | history |
diff --git a/builtin/commit.c b/builtin/commit.c
index 55676fd874466c70445e81c69cf397cd01380aaf..564042de3928ccff7c8ecb739b78ae1fdc890268 100644 (file)
--- a/builtin/commit.c
+++ b/builtin/commit.c
static int use_editor = 1, initial_commit, in_merge, include_status = 1;
static const char *only_include_assumed;
-static struct strbuf message;
+static struct strbuf message = STRBUF_INIT;
static int null_termination;
static enum {
diff --git a/builtin/merge.c b/builtin/merge.c
index 3aaec7bed76af9efdfe5647be0da64373db2011e..c6e3e7fdaf92dc94925283ee5470588625c7df48 100644 (file)
--- a/builtin/merge.c
+++ b/builtin/merge.c
static int option_commit = 1, allow_fast_forward = 1;
static int fast_forward_only;
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;