[locale,xkbfile] fix comparison function

This commit is contained in:
akallabeth 2024-10-15 23:34:01 +02:00
parent 52d32d812c
commit acf80baeb7
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -421,12 +421,13 @@ static int xkb_cmp(const void* pva, const void* pvb)
{
const XKB_KEY_NAME_SCANCODE* a = pva;
const XKB_KEY_NAME_SCANCODE* b = pvb;
if (!a && !b)
return 0;
if (!a)
return 1;
if (!b)
return -1;
if (!a && !b)
return 0;
return strcmp(a->xkb_keyname, b->xkb_keyname);
}