Parcourir la source

Allow for empty replacement string (#1178)

pull/1181/head
Benjamin Stigsen il y a 5 ans
committed by GitHub
Parent
révision
2d6303e9fe
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c Voir le fichier

@ -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;

Chargement…
Annuler
Enregistrer