atom: allow interning empty string
Which is different than XKB_ATOM_NONE, as in "" != NULL. Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
58345f4e9c
commit
d873693ba6
|
@ -204,7 +204,7 @@ atom_intern(struct atom_table *table, const char *string, size_t len,
|
||||||
struct atom_node *node;
|
struct atom_node *node;
|
||||||
unsigned int fingerprint;
|
unsigned int fingerprint;
|
||||||
|
|
||||||
if (!string || len == 0)
|
if (!string)
|
||||||
return XKB_ATOM_NONE;
|
return XKB_ATOM_NONE;
|
||||||
|
|
||||||
if (find_node_pointer(table, string, len, &nodep, &fingerprint)) {
|
if (find_node_pointer(table, string, len, &nodep, &fingerprint)) {
|
||||||
|
|
Loading…
Reference in New Issue