summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 21bb8808..a16774ba 100644
--- a/src/text.c
+++ b/src/text.c
@@ -1180,7 +1180,7 @@ const char *TextSubtext(const char *text, int position, int length)
char *TextReplace(char *text, const char *replace, const char *by)
{
// Sanity checks and initialization
- if (!text || !replace || !by || by[0] == '\0') return NULL;
+ if (!text || !replace || !by) return NULL;
char *result;