diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-03-06 10:03:11 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-03-06 10:03:11 +0000 |
commit | 8d730af0403e2384c933daf37d35627b24d9caec (patch) | |
tree | d122a3739bda8d713bbac33e248a9a655ce3c03b | |
parent | 6bf7004286a594401b6eac3e65501db908f86c04 (diff) | |
download | perl-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.xs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |