From 256846bb65357d2d564ec394394c235408eaf4a7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 23 Jan 1999 09:43:49 +0000 Subject: Update. 1998-12-29 Geoff Keating * sunrpc/Versions: Include _authenticate, it's defined in a user header (in fact, it's the whole contents of rpc/svc_auth.h). 1999-01-23 Ulrich Drepper * io/ftw.c (process_entry): Initialize flag since not all gcc versions are smart enough to see that this is no problem. * elf/dl-open.c (_dl_init_paths): Check malloc result. * csu/Versions: Add __frame_state_for. --- elf/dl-load.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'elf/dl-load.c') diff --git a/elf/dl-load.c b/elf/dl-load.c index 3e5e291018..cc3ac6e15e 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1,5 +1,5 @@ /* Map in a shared object's segments from the file. - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -470,6 +470,8 @@ _dl_init_paths (const char *llp) /* First set up the rest of the default search directory entries. */ aelem = rtld_search_dirs = (struct r_search_path_elem **) malloc ((ncapstr + 1) * sizeof (struct r_search_path_elem *)); + if (rtld_search_dirs == NULL) + _dl_signal_error (ENOMEM, NULL, "cannot create search path array"); round_size = ((2 * sizeof (struct r_search_path_elem) - 1 + ncapstr * sizeof (enum r_dir_status)) -- cgit 1.4.1