summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-07-02 15:16:19 +0200
committerZenWalker <[email protected]>2019-07-03 20:06:41 +0200
commit3ed089797f798ea47c40d6126d3c002efe81015f (patch)
tree614e08dcce6d049229893e0f254a98d63cb0da68 /eel
parentbf763bdce1802792c30f829abc057b076a6a4525 (diff)
downloadcaja-3ed089797f798ea47c40d6126d3c002efe81015f.tar.bz2
caja-3ed089797f798ea47c40d6126d3c002efe81015f.tar.xz
eel-string: Fix 'make check'
Fixes https://github.com/mate-desktop/caja/commit/312394dfa42c07a3afa5089c6e3e5b9a1c1001ae#commitcomment-34152266
Diffstat (limited to 'eel')
-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 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);