diff --git a/lib/lib_strstr.c b/lib/lib_strstr.c index 4e2eeb94cbd..0dd43ce1b68 100644 --- a/lib/lib_strstr.c +++ b/lib/lib_strstr.c @@ -54,7 +54,7 @@ char *strstr(const char *str, const char *substr) /* Special case the empty substring */ len = strlen(substr); - ch = *substr++; + ch = *substr; if (!ch) {