diff options
author | Brian Downing <bdowning@lavos.net> | 2008-10-25 15:30:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-25 12:09:31 -0700 |
commit | 9ccd0a88ac3ea13ac2df4630bfd01c02084f965e (patch) | |
tree | 311e998623a98265b07aee45a17f22b486678674 /builtin-blame.c | |
parent | blame: inline get_patch() (diff) | |
download | tgif-9ccd0a88ac3ea13ac2df4630bfd01c02084f965e.tar.xz |
Always initialize xpparam_t to 0
We're going to be adding some parameters to this, so we can't have
any uninitialized data in it.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-blame.c')
-rw-r--r-- | builtin-blame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-blame.c b/builtin-blame.c index 593b539f1e..5ca7065171 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -523,6 +523,7 @@ static struct patch *compare_buffer(mmfile_t *file_p, mmfile_t *file_o, xdemitconf_t xecfg; xdemitcb_t ecb; + memset(&xpp, 0, sizeof(xpp)); xpp.flags = xdl_opts; memset(&xecfg, 0, sizeof(xecfg)); xecfg.ctxlen = context; |