mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
core: check that callback is not NULL in function string_replace_with_callback
This commit is contained in:
@@ -2661,7 +2661,7 @@ string_replace_with_callback (const char *string,
|
||||
|
||||
*errors = 0;
|
||||
|
||||
if (!string || !prefix || !prefix[0] || !suffix || !suffix[0])
|
||||
if (!string || !prefix || !prefix[0] || !suffix || !suffix[0] || !callback)
|
||||
return NULL;
|
||||
|
||||
length_prefix = strlen (prefix);
|
||||
|
||||
Reference in New Issue
Block a user