From 9849717d4a8abb8f5d68a8364edd443f25428f11 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Tue, 2 Jul 2019 15:16:19 +0200 Subject: eel-string: Fix 'make check' Fixes https://github.com/mate-desktop/caja/commit/312394dfa42c07a3afa5089c6e3e5b9a1c1001ae#commitcomment-34152266 --- eel/eel-string.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eel/eel-string.c b/eel/eel-string.c index 080adeda..47c0592d 100644 --- a/eel/eel-string.c +++ b/eel/eel-string.c @@ -292,9 +292,10 @@ eel_str_replace_substring (const char *string, { return NULL; } - else if (replacement == NULL) + + if (replacement == NULL) { - return (char *) string; + replacement = ""; } substring_length = strlen (substring); -- cgit v1.2.1