From 7ec8baaa7e1762bb3407b3e7b5037f0443bb7243 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 8 Aug 2008 07:47:31 -0700 Subject: [PATCH] Make sure that the hlink node->data allocation doesn't fail. --- hlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hlink.c b/hlink.c index 99b4315e..b8ada486 100644 --- a/hlink.c +++ b/hlink.c @@ -119,7 +119,8 @@ static void match_gnums(int32 *ndx_list, int ndx_count) if (inc_recurse) { node = hashtable_find(prior_hlinks, gnum, 1); if (!node->data) { - node->data = new_array0(char, 5); + if (!(node->data = new_array0(char, 5))) + out_of_memory("match_gnums"); assert(gnum >= hlink_flist->ndx_start); file->flags |= FLAG_HLINK_FIRST; prev = -1; -- 2.11.4.GIT