Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.aout_so Deal with an empty hints file.



details:   https://anonhg.NetBSD.org/src/rev/23298e279733
branches:  trunk
changeset: 500735:23298e279733
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Dec 17 21:41:15 2000 +0000

description:
Deal with an empty hints file.

diffstat:

 libexec/ld.aout_so/rtld.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r b062cc257111 -r 23298e279733 libexec/ld.aout_so/rtld.c
--- a/libexec/ld.aout_so/rtld.c Sun Dec 17 21:36:49 2000 +0000
+++ b/libexec/ld.aout_so/rtld.c Sun Dec 17 21:41:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.c,v 1.78 2000/11/28 06:01:46 mycroft Exp $        */
+/*     $NetBSD: rtld.c,v 1.79 2000/12/17 21:41:15 pk Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1478,6 +1478,9 @@
 {
        struct hints_bucket     *bp;
 
+       if (hheader->hh_nbucket == 0)
+               return (NULL);
+
        bp = hbuckets + (hinthash(name, major, minor) % hheader->hh_nbucket);
 
        while (1) {



Home | Main Index | Thread Index | Old Index