summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorLibravatar Tanay Abhra <tanayabh@gmail.com>2014-08-04 07:41:15 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-08-04 12:12:25 -0700
commita26bc613a64ac2c7ee69a50675e61b004a26382d (patch)
tree16eb05b8b6b7257133b8a08a990ce1dfc1893331 /run-command.c
parentMerge branch 'maint-1.8.5' into maint-1.9 (diff)
downloadtgif-a26bc613a64ac2c7ee69a50675e61b004a26382d.tar.xz
pretty.c: make git_pretty_formats_config return -1 on git_config_string failure
`git_pretty_formats_config()` continues without checking git_config_string's return value which can lead to a SEGFAULT. Instead return -1 when git_config_string fails signalling `git_config()` to die printing the location of the erroneous variable. Signed-off-by: Tanay Abhra <tanayabh@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.c')
0 files changed, 0 insertions, 0 deletions