aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 4d86858..90817da 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -584,6 +584,9 @@ return_list_str(char *s, Header header, int32_t tag_name, int32_t tag_flags, int
}
} else if (header) {
struct rpmtd_s list, flags, list_evr;
+ memset(&list, 0, sizeof(list));
+ memset(&flags, 0, sizeof(flags));
+ memset(&list_evr, 0, sizeof(list_evr));
if (headerGet(header, tag_name, &list, HEADERGET_DEFAULT)) {
if (tag_flags) headerGet(header, tag_flags, &flags, HEADERGET_DEFAULT);