aboutsummaryrefslogtreecommitdiff
path: root/libxkbfile/src/xkbatom.c
diff options
context:
space:
mode:
Diffstat (limited to 'libxkbfile/src/xkbatom.c')
-rw-r--r--libxkbfile/src/xkbatom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libxkbfile/src/xkbatom.c b/libxkbfile/src/xkbatom.c
index 24bdcd764..4fca90c62 100644
--- a/libxkbfile/src/xkbatom.c
+++ b/libxkbfile/src/xkbatom.c
@@ -178,8 +178,8 @@ static char *
_XkbNameForAtom(Atom atom)
{
NodePtr node;
- if (atom > lastAtom) return 0;
- if ((node = nodeTable[atom]) == (NodePtr)NULL) return 0;
+ if (atom > lastAtom) return NULL;
+ if ((node = nodeTable[atom]) == (NodePtr)NULL) return NULL;
return strdup(node->string);
}