summaryrefslogtreecommitdiff
path: root/builtin-blame.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-07-04 18:05:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-06 07:22:12 (GMT)
commit30b250104d9307e1225031c7fc39b66643265ed1 (patch)
tree73b3d00a0e5743a1a4b70937c9f83c78224e6609 /builtin-blame.c
parent29a3eefde111f6a24292163c4308f00ab3572627 (diff)
downloadgit-30b250104d9307e1225031c7fc39b66643265ed1.zip
git-30b250104d9307e1225031c7fc39b66643265ed1.tar.gz
git-30b250104d9307e1225031c7fc39b66643265ed1.tar.bz2
Future-proof source for changes in xdemitconf_t
The instances of xdemitconf_t were initialized member by member. Instead, initialize them to all zero, so we do not have to update those places each time we introduce a new member. [jc: minimally fixed by getting rid of a new global] Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-blame.c')
-rw-r--r--builtin-blame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-blame.c b/builtin-blame.c
index da23a6f..0519339 100644
--- a/builtin-blame.c
+++ b/builtin-blame.c
@@ -518,8 +518,8 @@ static struct patch *compare_buffer(mmfile_t *file_p, mmfile_t *file_o,
xdemitcb_t ecb;
xpp.flags = xdl_opts;
+ memset(&xecfg, 0, sizeof(xecfg));
xecfg.ctxlen = context;
- xecfg.flags = 0;
ecb.outf = xdiff_outf;
ecb.priv = &state;
memset(&state, 0, sizeof(state));