aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 9e36e24..4971528 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -423,6 +423,8 @@ return_list_str(char *s, Header header, int32_t tag_name, int32_t tag_flags, int
struct rpmtd_s list, flags, list_evr;
if (headerGet(header, tag_name, &list, HEADERGET_DEFAULT)) {
+ memset((void*)&flags, 0, sizeof(flags));
+ memset((void*)&list_evr, 0, sizeof(list_evr));
if (tag_flags) headerGet(header, tag_flags, &flags, HEADERGET_DEFAULT);
if (tag_version) headerGet(header, tag_version, &list_evr, HEADERGET_DEFAULT);
while (rpmtdNext(&list) >= 0) {