mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-02 19:26:43 +00:00
Fix Cov CID 1352280
This commit is contained in:
parent
0b1a339f59
commit
09117ca99b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user