From f8aac5ea33be8aaee4800a725e7352a9655f3c4f Mon Sep 17 00:00:00 2001 From: ewt Date: Sat, 31 Aug 1996 18:35:26 +0000 Subject: [PATCH] getEntry() allows NULL pointers CVS patchset: 1005 CVS date: 1996/08/31 18:35:26 --- lib/header.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/header.c b/lib/header.c index ff66959..b0457e1 100644 --- a/lib/header.c +++ b/lib/header.c @@ -644,6 +644,8 @@ int getEntry(Header h, int_32 tag, int_32 * type, void **p, int_32 * c) char *sp; int x; + if (!p) return isEntry(h, tag); + /* First find the tag */ index = findEntry(h, tag); if (! index) { -- 2.7.4