From: Jeremy Harris Date: Sat, 5 Feb 2022 10:54:29 +0000 (+0000) Subject: Account for null strinng in debug "show" X-Git-Tag: exim-4.96-RC0~81 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/2ed83f6f247c8030765ce366d9d91f93c93bb36a?hp=09a2523a0d7d31ce2ed7c6e24732919258c43fab Account for null strinng in debug "show" --- 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); }