diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libreadline/complete.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/libreadline/complete.c b/contrib/libreadline/complete.c index f9e27eb..df17e49 100644 --- a/contrib/libreadline/complete.c +++ b/contrib/libreadline/complete.c @@ -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++) |