summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-07-02 15:16:19 +0200
committerraveit65 <[email protected]>2022-07-20 18:46:01 +0200
commit9849717d4a8abb8f5d68a8364edd443f25428f11 (patch)
tree1708dd3fff41d6dd0a805d8e445904b5be1f8a8e
parent7972bc4df2f2a275bfdbf465569fde3e1019efbd (diff)
downloadcaja-9849717d4a8abb8f5d68a8364edd443f25428f11.tar.bz2
caja-9849717d4a8abb8f5d68a8364edd443f25428f11.tar.xz
eel-string: Fix 'make check'
Fixes https://github.com/mate-desktop/caja/commit/312394dfa42c07a3afa5089c6e3e5b9a1c1001ae#commitcomment-34152266
-rw-r--r--eel/eel-string.c5
1 files 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);