mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
* Fix segfault in file path autocompletion
This commit is contained in:
parent
814d220ac6
commit
7e8aba2198
@ -132,9 +132,10 @@ static int autocomplete(RLine *line) {
|
||||
} else *p = 0;
|
||||
p++;
|
||||
}
|
||||
if (p && !*p)
|
||||
p = "";
|
||||
n = strlen (p);
|
||||
if (p) {
|
||||
if (*p) n = strlen (p);
|
||||
else p = "";
|
||||
}
|
||||
#if 0
|
||||
printf ("DIR(%s)\n", path);
|
||||
printf ("FILE(%s)\n", p);
|
||||
|
Loading…
Reference in New Issue
Block a user