summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-02-05 10:54:29 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2022-02-05 10:54:29 +0000
commit2ed83f6f247c8030765ce366d9d91f93c93bb36a (patch)
tree66c245e42915db347a4b4ecdb4a97797ea15f3dd
parent09a2523a0d7d31ce2ed7c6e24732919258c43fab (diff)
Account for null strinng in debug "show"
-rw-r--r--src/src/exim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/exim.c b/src/src/exim.c
index 9da921a5c..38ce2b46f 100644
--- 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);
}