git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
09a2523
)
Account for null strinng in debug "show"
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 5 Feb 2022 10:54:29 +0000
(10:54 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 5 Feb 2022 10:54:29 +0000
(10:54 +0000)
src/src/exim.c
patch
|
blob
|
history
diff --git
a/src/src/exim.c
b/src/src/exim.c
index 9da921a5c13c833970a0685a94c58e4a004eec5f..38ce2b46f1a6d60873066cab15a558bf6101b898 100644
(file)
--- a/
src/src/exim.c
+++ b/
src/src/exim.c
@@
-958,8
+958,9
@@
void
show_string(BOOL is_stdout, gstring * g)
{
const uschar * s = string_from_gstring(g);
-if (is_stdout) fputs(CCS s, stdout);
-else debug_printf("%s", s);
+if (s)
+ if (is_stdout) fputs(CCS s, stdout);
+ else debug_printf("%s", s);
}