summaryrefslogtreecommitdiff
path: root/src/stubs/atom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stubs/atom.c')
-rw-r--r--src/stubs/atom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stubs/atom.c b/src/stubs/atom.c
index 804a4de..afc186c 100644
--- a/src/stubs/atom.c
+++ b/src/stubs/atom.c
@@ -189,7 +189,9 @@ __libxfont_internal__MakeAtom(const char *string, unsigned len, int makeit)
a->atom = ++lastAtom;
a->hash = hash;
if (hashUsed >= hashSize / 2) {
- ResizeHashTable();
+ if ((ResizeHashTable() == FALSE) &&
+ ((hashTable == NULL) || (hashUsed == hashSize)))
+ return None;
h = hash & hashMask;
if (hashTable[h]) {
r = (hash % rehash) | 1;