From: Andrey Volk Date: Sat, 3 Apr 2021 17:14:29 +0000 (+0300) Subject: [Core] scan-build: Argument with 'nonnull' attribute passed null in switch_html_strip() X-Git-Tag: v1.10.7^2~236 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e14df00aa6155f523f5911c5b8e1031cc13d8cf6;p=thirdparty%2Ffreeswitch.git [Core] scan-build: Argument with 'nonnull' attribute passed null in switch_html_strip() --- diff --git a/src/switch_utils.c b/src/switch_utils.c index f59f502d62..932e9d963c 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -4538,7 +4538,7 @@ SWITCH_DECLARE(char *)switch_html_strip(const char *str) text = (char *)stream.data; #else 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 return text;