diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-02-05 10:54:29 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-02-05 10:54:29 +0000 |
commit | 2ed83f6f247c8030765ce366d9d91f93c93bb36a (patch) | |
tree | 66c245e42915db347a4b4ecdb4a97797ea15f3dd | |
parent | 09a2523a0d7d31ce2ed7c6e24732919258c43fab (diff) |
Account for null strinng in debug "show"
-rw-r--r-- | src/src/exim.c | 5 |
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); } |