This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Properly handle empty filters
master
sin
9 years ago
parent
ea0cce7b63
commit
30ca80310a
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
noice.c
+ 2
- 1
noice.c
View 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 str
len(ln) ? str
dup(ln)
: NULL
;
}
/*
Write
Preview
Loading…
Cancel
Save