Deal with an empty hints file.
This commit is contained in:
parent
5c6130a2b1
commit
872b464997
|
@ -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 @@ findhint(name, major, minor, prefered_path)
|
|||
{
|
||||
struct hints_bucket *bp;
|
||||
|
||||
if (hheader->hh_nbucket == 0)
|
||||
return (NULL);
|
||||
|
||||
bp = hbuckets + (hinthash(name, major, minor) % hheader->hh_nbucket);
|
||||
|
||||
while (1) {
|
||||
|
|
Loading…
Reference in New Issue