Ver a proveniência

Allow for empty replacement string (#1178)

pull/1181/head
Benjamin Stigsen há 5 anos
committed by GitHub
ascendente
cometimento
2d6303e9fe
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c Ver ficheiro

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

Carregando…
Cancelar
Guardar