summaryrefslogtreecommitdiff
path: root/contrib/vim
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2011-02-12 00:18:51 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-02-14 10:55:03 -0800
commit62b8102c60a716e66cfd2a33e596e9d5be134267 (patch)
treed3def01dc545c9ba7d4bf6962f0c8ca139928572 /contrib/vim
parentcorrect type of EMPTY_TREE_SHA1_BIN (diff)
downloadtgif-62b8102c60a716e66cfd2a33e596e9d5be134267.tar.xz
string_list_append: always set util pointer to NULL
It is not immediately obvious that the util field may contain random bytes after appending an item. Especially since the string_list_insert* functions _do_ explicitly zero the util pointer. This does not appear to be a bug in any current git code, as all callers either fill in the util field immediately or never use it. However, it is worth it to be less surprising to new users of the string-list API who may expect it to be intialized to NULL. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/vim')
0 files changed, 0 insertions, 0 deletions