summaryrefslogtreecommitdiff
path: root/eel/eel-string.c
diff options
context:
space:
mode:
Diffstat (limited to 'eel/eel-string.c')
-rw-r--r--eel/eel-string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eel/eel-string.c b/eel/eel-string.c
index aea801ea..3ed54d89 100644
--- a/eel/eel-string.c
+++ b/eel/eel-string.c
@@ -292,6 +292,10 @@ eel_str_replace_substring (const char *string,
{
return NULL;
}
+ else if (replacement == NULL)
+ {
+ return (char *) string;
+ }
substring_length = strlen (substring);
replacement_length = eel_strlen (replacement);