projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix return value.
[gnulib.git]
/
lib
/
strstr.c
diff --git
a/lib/strstr.c
b/lib/strstr.c
index
5bd7cb4
..
3faae01
100644
(file)
--- a/
lib/strstr.c
+++ b/
lib/strstr.c
@@
-71,7
+71,7
@@
strstr (const char *haystack, const char *needle)
{
if (!mbui_avail (rneedle))
/* Found a match. */
- return (char *)
haystack
;
+ return (char *)
mbui_cur_ptr (iter_haystack)
;
if (!mbui_avail (rhaystack))
/* No match. */
return NULL;