diff options
| author | Benjamin Stigsen <[email protected]> | 2020-04-05 22:42:59 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-05 22:42:59 +0200 |
| commit | 2d6303e9fefd4f97a637ab650ad530896de7b3f1 (patch) | |
| tree | 44b14e4a3d16638fdfd072f8919edf23a6471c6f /src/text.c | |
| parent | 90fb53bccc90ab7e3d24f8d8b9a6687098a8f739 (diff) | |
| download | raylib-2d6303e9fefd4f97a637ab650ad530896de7b3f1.tar.gz raylib-2d6303e9fefd4f97a637ab650ad530896de7b3f1.zip | |
Allow for empty replacement string (#1178)
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
