Skip to content

Commit

Permalink
Merge branch 'jk/maint-strbuf-missing-init' into maint
Browse files Browse the repository at this point in the history
* jk/maint-strbuf-missing-init:
  commit, merge: initialize static strbuf
  • Loading branch information
Junio C Hamano committed Dec 28, 2011
2 parents 4a242d6 + 03f94ae commit b42e81a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static enum commit_whence whence;
static int use_editor = 1, include_status = 1;
static int show_ignored_in_status;
static const char *only_include_assumed;
static struct strbuf message;
static struct strbuf message = STRBUF_INIT;

static int null_termination;
static enum {
Expand Down
2 changes: 1 addition & 1 deletion builtin/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static int show_diffstat = 1, shortlog_len, squash;
static int option_commit = 1, allow_fast_forward = 1;
static int fast_forward_only, option_edit;
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 struct strategy **use_strategies;
static size_t use_strategies_nr, use_strategies_alloc;
Expand Down

0 comments on commit b42e81a

Please sign in to comment.