From 3ed089797f798ea47c40d6126d3c002efe81015f 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(-) (limited to 'eel/eel-string.c') diff --git a/eel/eel-string.c b/eel/eel-string.c index 3c3bc29e..f366e586 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