From: Andrey Volk Date: Tue, 25 Feb 2020 20:15:28 +0000 (+0400) Subject: [mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null" X-Git-Tag: v1.10.3^2~121^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F418%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null" --- diff --git a/src/mod/languages/mod_python/mod_python.c b/src/mod/languages/mod_python/mod_python.c index 17da5f263f..c9ae2b895d 100644 --- a/src/mod/languages/mod_python/mod_python.c +++ b/src/mod/languages/mod_python/mod_python.c @@ -90,6 +90,7 @@ static void print_python_error(const char * script) if (buffer == NULL ) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Not enough Memory to create the error buffer"); + return; } /* just for security that we will always have a string terminater */