Fix Cov CID 1352280

This commit is contained in:
pancake 2016-02-27 12:38:02 +01:00
parent 0b1a339f59
commit 09117ca99b

View File

@ -179,7 +179,9 @@ static int visual_help() {
}
static void prompt_read (const char *p, char *buf, int buflen) {
if (buf) *buf = 0;
if (!buf || buflen < 1)
return;
*buf = 0;
r_line_set_prompt (p);
showcursor (NULL, true);
r_cons_fgets (buf, buflen, 0, NULL);