atom: allow interning empty string

Which is different than XKB_ATOM_NONE, as in "" != NULL.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2013-12-02 14:15:58 +02:00
parent 58345f4e9c
commit d873693ba6
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ atom_intern(struct atom_table *table, const char *string, size_t len,
struct atom_node *node;
unsigned int fingerprint;
if (!string || len == 0)
if (!string)
return XKB_ATOM_NONE;
if (find_node_pointer(table, string, len, &nodep, &fingerprint)) {