summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--THANKS1
-rw-r--r--src/muscle-tab.c2
-rw-r--r--src/state.c2
-rw-r--r--src/symtab.c4
-rw-r--r--src/uniqstr.c2
5 files changed, 11 insertions, 0 deletions
diff --git a/THANKS b/THANKS
index e40fc001..a0e3af66 100644
--- a/THANKS
+++ b/THANKS
@@ -199,6 +199,7 @@ Wwp subscript@free.fr
xolodho xolodho@gmail.com
Zack Weinberg zack@codesourcery.com
長田偉伸 cbh34680@iret.co.jp
+江 祖铭 jjzuming@outlook.com
Many people are not named here because we lost track of them. We
thank them! Please, help us keeping this list up to date.
diff --git a/src/muscle-tab.c b/src/muscle-tab.c
index fbb80fc2..d3e358e6 100644
--- a/src/muscle-tab.c
+++ b/src/muscle-tab.c
@@ -128,6 +128,8 @@ muscle_init (void)
muscle_table = hash_initialize (HT_INITIAL_CAPACITY, NULL, hash_muscle,
hash_compare_muscles, muscle_entry_free);
+ if (!muscle_table)
+ xalloc_die ();
/* Version and input file. */
MUSCLE_INSERT_STRING ("version", VERSION);
diff --git a/src/state.c b/src/state.c
index 87fbb1c6..64bb256c 100644
--- a/src/state.c
+++ b/src/state.c
@@ -364,6 +364,8 @@ state_hash_new (void)
state_hasher,
state_comparator,
NULL);
+ if (!state_table)
+ xalloc_die ();
}
diff --git a/src/symtab.c b/src/symtab.c
index 83e8256b..60733e72 100644
--- a/src/symtab.c
+++ b/src/symtab.c
@@ -778,11 +778,15 @@ symbols_new (void)
hash_symbol_hasher,
hash_symbol_comparator,
symbol_free);
+ if (!symbol_table)
+ xalloc_die ();
semantic_type_table = hash_initialize (HT_INITIAL_CAPACITY,
NULL,
hash_semantic_type_hasher,
hash_semantic_type_comparator,
free);
+ if (!semantic_type_table)
+ xalloc_die ();
}
diff --git a/src/uniqstr.c b/src/uniqstr.c
index f654d55e..d5c66846 100644
--- a/src/uniqstr.c
+++ b/src/uniqstr.c
@@ -162,6 +162,8 @@ uniqstrs_new (void)
hash_uniqstr,
hash_compare_uniqstr,
free);
+ if (!uniqstrs_table)
+ xalloc_die ();
}