projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d4dc1
)
getEntry() allows NULL pointers
author
ewt
<devnull@localhost>
Sat, 31 Aug 1996 18:35:26 +0000
(18:35 +0000)
committer
ewt
<devnull@localhost>
Sat, 31 Aug 1996 18:35:26 +0000
(18:35 +0000)
CVS patchset: 1005
CVS date: 1996/08/31 18:35:26
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
ff66959
..
b0457e1
100644
(file)
--- 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) {