From d331e5947c1d7aa167777fe9b55e5bd602a2e062 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 26 Feb 2020 00:15:28 +0400 Subject: [PATCH] [mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null" --- src/mod/languages/mod_python/mod_python.c | 1 + 1 file changed, 1 insertion(+) 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 */