Explorar el Código

Properly handle empty filters

master
sin hace 9 años
padre
commit
30ca80310a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      noice.c

+ 2
- 1
noice.c Ver fichero

@@ -331,10 +331,11 @@ readln(void)

echo();
curs_set(TRUE);
memset(ln, 0, sizeof(ln));
getnstr(ln, sizeof(ln) - 1);
noecho();
curs_set(FALSE);
return strdup(ln);
return strlen(ln) ? strdup(ln) : NULL;
}

/*


Cargando…
Cancelar
Guardar