1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

core: check that "chars" argument is not NULL in function string_strip

This commit is contained in:
Sébastien Helleu
2014-07-05 10:05:35 +02:00
parent 60c7696353
commit e75fef58c4
+1 -1
View File
@@ -560,7 +560,7 @@ string_strip (const char *string, int left, int right, const char *chars)
if (!string)
return NULL;
if (!string[0])
if (!string[0] || !chars)
return strdup (string);
ptr_start = string;