diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3858,8 +3858,7 @@ Urpm_spec2srcheader(specfile) if (! header) initSourceHeader(spec); #endif - pkg = (URPM__Package)malloc(sizeof(struct s_Package)); - memset(pkg, 0, sizeof(struct s_Package)); + pkg = (URPM__Package)calloc(1, sizeof(struct s_Package)); headerPutString(header, RPMTAG_SOURCERPM, ""); { |