mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 22:12:43 +00:00
Don't indirect through a NULL pointer in rl_strpbrk. This makes filename
completion work in GDB.
This commit is contained in:
parent
20cb3c714b
commit
adce8de5c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24104
@ -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