diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2013-07-15 02:54:12 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 08:20:32 -0700 |
commit | fbfba7ade0dde36d8911973b1dac248b81ce1375 (patch) | |
tree | 478e106499b6dd27d8664be7c281526c55531984 /t/t1510-repo-setup.sh | |
parent | mailmap: debug: eliminate -Wformat field precision type warning (diff) | |
download | tgif-fbfba7ade0dde36d8911973b1dac248b81ce1375.tar.xz |
mailmap: debug: avoid passing NULL to fprintf() '%s' conversion specification
POSIX does not state the behavior of '%s' conversion when passed a
NULL pointer. Some implementations interpolate literal "(null)";
others may crash.
Callers of debug_mm() often pass NULL as indication of either a
missing name or email address. Instead, let's always supply a
proper string pointer, and make it a bit more descriptive: "(none)"
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1510-repo-setup.sh')
0 files changed, 0 insertions, 0 deletions