diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2018-08-15 11:47:06 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2018-08-15 11:47:06 +0300 |
commit | 0e70854b6f7a5510cde24d533b3fcafbe398a753 (patch) | |
tree | e309f9ceea455e64dc229d605581d5739b83e58a | |
parent | 7c2205a537867b95f81ce874b735b49f3c73fad3 (diff) | |
download | rpm-0e70854b6f7a5510cde24d533b3fcafbe398a753.tar.gz |
hdrblobImport() doesn't support NULL as hdrp (#487)
-rw-r--r-- | lib/header.c | 3 |
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; |