Explorar el Código

Allow for empty replacement string (#1178)

pull/1181/head
Benjamin Stigsen hace 5 años
cometido por GitHub
padre
commit
2d6303e9fe
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c Ver fichero

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

Cargando…
Cancelar
Guardar