X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=lib%2Fstrstr.c;h=e31e20ddd4e9379075bdace575066e884ef46c17;hp=fbe7cfb121c593f1d6426e014bca01f3d76d1716;hb=be7cdc5970eef6bf45394304a0aaeb1ae203d456;hpb=f4ebbd9f7ea23e3f0fcbe098754580c220894628 diff --git a/lib/strstr.c b/lib/strstr.c index fbe7cfb..e31e20d 100644 --- a/lib/strstr.c +++ b/lib/strstr.c @@ -76,7 +76,8 @@ strstr (phaystack, pneedle) a = *++haystack; if (a == '\0') goto ret0; -shloop: } +shloop: ; + } while (a != b); jin: a = *++haystack;