parser: Fix crash when xf86nameCompare(s1 = x, s2 = NULL)
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
455051a0f1
commit
f1f865e909
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue