summaryrefslogtreecommitdiff
path: root/lib/rpmfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmfi.c')
-rw-r--r--lib/rpmfi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c
index 103576219..c07ddba37 100644
--- a/lib/rpmfi.c
+++ b/lib/rpmfi.c
@@ -997,6 +997,8 @@ rpmfi rpmfiNew(rpmts ts, Header h, rpmTag tagN, int scareMem)
}
fi = xcalloc(1, sizeof(*fi));
+ if (fi == NULL) /* XXX can't happen */
+ goto exit;
fi->magic = RPMFIMAGIC;
fi->Type = Type;