aboutsummaryrefslogtreecommitdiff
path: root/libxkbfile/src/xkbatom.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-10-07 08:43:18 +0000
committermarha <marha@users.sourceforge.net>2009-10-07 08:43:18 +0000
commitc73dc01b6de45612b24dc2dd34fba24d81ebf46c (patch)
tree50278a03a26262d5cc30244c65aeb31002c47cec /libxkbfile/src/xkbatom.c
parent77a4732b0637493966889fe3545966fdc12a1b5e (diff)
downloadvcxsrv-c73dc01b6de45612b24dc2dd34fba24d81ebf46c.tar.gz
vcxsrv-c73dc01b6de45612b24dc2dd34fba24d81ebf46c.tar.bz2
vcxsrv-c73dc01b6de45612b24dc2dd34fba24d81ebf46c.zip
Switched to following packages:
fixesproto-4.1.1 randrproto-1.3.1 libxkbfile-1.0.6
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);
}