aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-06 10:03:11 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-06 10:03:11 +0000
commit8d730af0403e2384c933daf37d35627b24d9caec (patch)
treed122a3739bda8d713bbac33e248a9a655ce3c03b
parent6bf7004286a594401b6eac3e65501db908f86c04 (diff)
downloadperl-URPM-8d730af0403e2384c933daf37d35627b24d9caec.tar
perl-URPM-8d730af0403e2384c933daf37d35627b24d9caec.tar.gz
perl-URPM-8d730af0403e2384c933daf37d35627b24d9caec.tar.bz2
perl-URPM-8d730af0403e2384c933daf37d35627b24d9caec.tar.xz
perl-URPM-8d730af0403e2384c933daf37d35627b24d9caec.zip
initialize rpmtd structs to avoid valgrind errors..
-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);