From e14df00aa6155f523f5911c5b8e1031cc13d8cf6 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sat, 3 Apr 2021 20:14:29 +0300 Subject: [PATCH] [Core] scan-build: Argument with 'nonnull' attribute passed null in switch_html_strip() --- src/switch_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;