X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Flibpspp%2Fzip-reader.c;h=00249e0bae41be64128720410c0079c7e819a230;hb=9cedbc3f32609f38e88f715ad9948e71c8cbb788;hp=d33e5f930e289b4e86674548816f2834b3cfa376;hpb=11169f874096275562c7120e2ff3f3c6966ff1af;p=pspp diff --git a/src/libpspp/zip-reader.c b/src/libpspp/zip-reader.c index d33e5f930e..00249e0bae 100644 --- a/src/libpspp/zip-reader.c +++ b/src/libpspp/zip-reader.c @@ -378,7 +378,7 @@ zip_reader_create (const char *file_name, struct zip_reader **zrp) return NULL; } - struct zip_reader *zr = xzalloc (sizeof *zr); + struct zip_reader *zr = XZALLOC (struct zip_reader); zr->ref_cnt = 1; zr->file_name = xstrdup (file_name); zr->entries = xcalloc (n_members, sizeof *zr->entries); @@ -668,7 +668,7 @@ static char * inflate_init (struct zip_member *zm) { int r; - struct inflator *inf = xzalloc (sizeof *inf); + struct inflator *inf = XZALLOC (struct inflator); uint16_t flg = 0 ; uint16_t cmf = 0x8; /* Always 8 for inflate */