summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index 488d332dc..5cab4a35d 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -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);