]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] scan-build: Argument with 'nonnull' attribute passed null in switch_html_strip()
authorAndrey Volk <andywolk@gmail.com>
Sat, 3 Apr 2021 17:14:29 +0000 (20:14 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 19 Oct 2021 17:35:11 +0000 (20:35 +0300)
src/switch_utils.c

index f59f502d627030b3d51e045892ca00cfb44c1ae4..932e9d963c8006fad28115fcdbb2828ad6122ca9 100644 (file)
@@ -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;