summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/signature.c b/lib/signature.c
index e3cafc4b2..75dfd106e 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -201,11 +201,9 @@ rpmRC rpmReadSignature(FD_t fd, Header * headerp, sigType sig_type)
break;
}
- if (rc == 0 && headerp)
- /*@-nullderef@*/
+ if (headerp && rc == 0)
*headerp = h;
- /*@=nullderef@*/
- else if (h)
+ else
h = headerFree(h);
return rc;