Sfoglia il codice sorgente

Properly handle empty filters

master
sin 9 anni fa
parent
commit
30ca80310a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      noice.c

+ 2
- 1
noice.c Vedi File

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

/*


Loading…
Annulla
Salva