diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-08-08 22:11:53 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-09 19:07:36 (GMT) |
commit | 3b0c18af5c545c93bf33b53d467b887e9733c0c6 (patch) | |
tree | 17133099add0ded9a0efe02903a0778cdb0ee97b /credential.c | |
parent | c189c4f2c42083b329605fb7b0583b29b73da086 (diff) | |
download | git-3b0c18af5c545c93bf33b53d467b887e9733c0c6.zip git-3b0c18af5c545c93bf33b53d467b887e9733c0c6.tar.gz git-3b0c18af5c545c93bf33b53d467b887e9733c0c6.tar.bz2 |
diff: fix a possible null pointer dereference
The condition in the ternary operator was wrong, hence the wrong char
pointer could be used as the parameter for show_submodule_summary.
one->path may be null, but we definitely need a non null path given
to the function.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Acked-By: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.c')
0 files changed, 0 insertions, 0 deletions