Commit f1f865e9 authored by Adam Jackson's avatar Adam Jackson 🎧

parser: Fix crash when xf86nameCompare(s1 = x, s2 = NULL)

Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent 455051a0
......@@ -1046,6 +1046,8 @@ xf86nameCompare(const char *s1, const char *s2)
return 0;
else
return 1;
} else if (!s2 || *s2 == 0) {
return -1;
}
while (*s1 == '_' || *s1 == ' ' || *s1 == '\t')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment