summaryrefslogtreecommitdiffstats
path: root/libidu/idu-hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'libidu/idu-hash.c')
-rw-r--r--libidu/idu-hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libidu/idu-hash.c b/libidu/idu-hash.c
index 638335e..3eab298 100644
--- a/libidu/idu-hash.c
+++ b/libidu/idu-hash.c
@@ -48,7 +48,7 @@ hash_init (struct hash_table* ht, unsigned long size,
ht->ht_empty_slots = ht->ht_size;
ht->ht_vec = xcalloc (ht->ht_size, sizeof(struct token *));
if (ht->ht_vec == 0)
- error (1, 0, _("can't allocate %ld bytes for hash table: memory exhausted"),
+ error (EXIT_FAILURE, 0, _("can't allocate %ld bytes for hash table: memory exhausted"),
ht->ht_size * sizeof(struct token *));
ht->ht_capacity = ht->ht_size * 15 / 16; /* 93.75% loading factor */
ht->ht_fill = 0;