Don't indirect through a NULL pointer in rl_strpbrk. This makes filename
completion work in GDB.
This commit is contained in:
parent
90027d0150
commit
f578de4d6d
@ -1528,6 +1528,9 @@ rl_strpbrk (string1, string2)
|
||||
{
|
||||
register char *scan;
|
||||
|
||||
if (string2 == NULL)
|
||||
return ((char *)NULL);
|
||||
|
||||
for (; *string1; string1++)
|
||||
{
|
||||
for (scan = string2; *scan; scan++)
|
||||
|
Loading…
Reference in New Issue
Block a user