core: check that callback is not NULL in function string_replace_with_callback
This commit is contained in:
parent
8ab538c0d9
commit
4faa227a2d
@ -2661,7 +2661,7 @@ string_replace_with_callback (const char *string,
|
|||||||
|
|
||||||
*errors = 0;
|
*errors = 0;
|
||||||
|
|
||||||
if (!string || !prefix || !prefix[0] || !suffix || !suffix[0])
|
if (!string || !prefix || !prefix[0] || !suffix || !suffix[0] || !callback)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
length_prefix = strlen (prefix);
|
length_prefix = strlen (prefix);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user