summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2018-08-15 11:47:06 +0300
committerPanu Matilainen <pmatilai@redhat.com>2018-08-15 11:47:06 +0300
commit0e70854b6f7a5510cde24d533b3fcafbe398a753 (patch)
treee309f9ceea455e64dc229d605581d5739b83e58a
parent7c2205a537867b95f81ce874b735b49f3c73fad3 (diff)
downloadrpm-0e70854b6f7a5510cde24d533b3fcafbe398a753.tar.gz
hdrblobImport() doesn't support NULL as hdrp (#487)
-rw-r--r--lib/header.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/header.c b/lib/header.c
index 75465382f..237c3a48d 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -963,8 +963,7 @@ rpmRC hdrblobImport(hdrblob blob, int fast, Header *hdrp, char **emsg)
h->sorted = HEADERSORT_NONE;
headerSort(h);
h->flags |= HEADERFLAG_ALLOCATED;
- if (hdrp)
- *hdrp = h;
+ *hdrp = h;
/* We own the memory now, avoid double-frees */
blob->ei = NULL;