diff options
author | René Scharfe <l.s.r@web.de> | 2017-11-01 18:03:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-03 22:45:45 +0900 |
commit | f54c5bd40c0e215fc0ba196d74b092ef3ec02273 (patch) | |
tree | a869ff05fa594c7a72f9ffff3278a1ac4632579c /t/perf/run | |
parent | Git 2.12.5 (diff) | |
download | tgif-f54c5bd40c0e215fc0ba196d74b092ef3ec02273.tar.xz |
imap-send: handle NULL return of next_arg()
next_arg() returns NULL if it runs out of arguments. Most call sites
already handle that gracefully. Check in the remaining cases as well.
Replace the NULL pointer with an empty string at the bottom of
get_cmd_result() -- it's nicely reported as an unexpected response a
few lines down. Error out explicitly at the remaining sites.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/run')
0 files changed, 0 insertions, 0 deletions