Don't indirect through a NULL pointer in rl_strpbrk. This makes filename

completion work in GDB.
This commit is contained in:
dfr 1997-03-22 14:03:08 +00:00
parent 90027d0150
commit f578de4d6d

View File

@ -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++)