Merge pull request #418 from signalwire/mod_python

[mod_python] scan-build: Fix "Argument with 'nonnull' attribute passed null"
This commit is contained in:
Andrey Volk 2020-02-26 23:32:20 +04:00 committed by GitHub
commit 22e0beefad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 */