Message ID | 5182A305.6000504@ti.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/lib/string.c b/lib/string.c index e5878de..b83eee7 100644 --- a/lib/string.c +++ b/lib/string.c @@ -522,7 +522,7 @@ EXPORT_SYMBOL(strsep); */ bool sysfs_streq(const char *s1, const char *s2) { - while (*s1 && *s1 == *s2) { + while (*s1 && *s2 && *s1 == *s2) { s1++; s2++; }