Browse Source

Properly handle empty filters

master
sin 9 years ago
parent
commit
30ca80310a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      noice.c

+ 2
- 1
noice.c View File

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


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


/* /*


Loading…
Cancel
Save