projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50ef054
)
Avoid segfault in rpmLeadNew() if calloc() fails
author
Jindrich Novy
<jnovy@redhat.com>
Thu, 25 Sep 2008 17:32:27 +0000
(19:32 +0200)
committer
Jindrich Novy
<jnovy@redhat.com>
Thu, 25 Sep 2008 18:03:50 +0000
(20:03 +0200)
lib/rpmlead.c
patch
|
blob
|
history
diff --git
a/lib/rpmlead.c
b/lib/rpmlead.c
index
805606a
..
8bb8779
100644
(file)
--- a/
lib/rpmlead.c
+++ b/
lib/rpmlead.c
@@
-41,7
+41,7
@@
struct rpmlead_s {
rpmlead rpmLeadNew(void)
{
int archnum, osnum;
- rpmlead l = calloc(1, sizeof(*l));
+ rpmlead l =
x
calloc(1, sizeof(*l));
rpmGetArchInfo(NULL, &archnum);
rpmGetOsInfo(NULL, &osnum);