summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/util.c')
-rw-r--r--contrib/libreadline/util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/libreadline/util.c b/contrib/libreadline/util.c
index 5eb996a..4cbd9ef 100644
--- a/contrib/libreadline/util.c
+++ b/contrib/libreadline/util.c
@@ -1,4 +1,5 @@
/* $FreeBSD$ */
+
/* util.c -- readline utility functions */
/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
@@ -239,9 +240,6 @@ _rl_strpbrk (string1, string2)
memset (&ps, 0, sizeof (mbstate_t));
#endif
- if (string2 == NULL)
- return ((char *)NULL);
-
for (; *string1; string1++)
{
for (scan = string2; *scan; scan++)
@@ -254,7 +252,7 @@ _rl_strpbrk (string1, string2)
{
v = _rl_get_char_len (string1, &ps);
if (v > 1)
- string += v - 1; /* -1 to account for auto-increment in loop */
+ string1 += v - 1; /* -1 to account for auto-increment in loop */
}
#endif
}
OpenPOWER on IntegriCloud