[mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null"

This commit is contained in:
Andrey Volk 2020-02-26 00:15:28 +04:00
parent 42d3100609
commit d331e5947c
1 changed files with 1 additions and 0 deletions

View File

@ -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 */