[Core] scan-build: Argument with 'nonnull' attribute passed null in switch_html_strip()

This commit is contained in:
Andrey Volk 2021-04-03 20:14:29 +03:00
parent 67048377c4
commit e14df00aa6
1 changed files with 1 additions and 1 deletions

View File

@ -4538,7 +4538,7 @@ SWITCH_DECLARE(char *)switch_html_strip(const char *str)
text = (char *)stream.data; text = (char *)stream.data;
#else #else
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Support for html parser is not compiled.\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Support for html parser is not compiled.\n");
text = strdup(html); text = switch_safe_strdup(html);
#endif #endif
return text; return text;