Lines Matching refs:za
43 zip_unchange(struct zip *za, zip_uint64_t idx) in zip_unchange() argument
45 return _zip_unchange(za, idx, 0); in zip_unchange()
51 _zip_unchange(struct zip *za, zip_uint64_t idx, int allow_duplicates) in _zip_unchange() argument
55 if (idx >= za->nentry) { in _zip_unchange()
56 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in _zip_unchange()
60 if (za->entry[idx].ch_filename) { in _zip_unchange()
62 i = _zip_name_locate(za, in _zip_unchange()
63 _zip_get_name(za, idx, ZIP_FL_UNCHANGED, NULL), in _zip_unchange()
66 _zip_error_set(&za->error, ZIP_ER_EXISTS, 0); in _zip_unchange()
71 free(za->entry[idx].ch_filename); in _zip_unchange()
72 za->entry[idx].ch_filename = NULL; in _zip_unchange()
75 free(za->entry[idx].ch_extra); in _zip_unchange()
76 za->entry[idx].ch_extra = NULL; in _zip_unchange()
77 za->entry[idx].ch_extra_len = -1; in _zip_unchange()
78 free(za->entry[idx].ch_comment); in _zip_unchange()
79 za->entry[idx].ch_comment = NULL; in _zip_unchange()
80 za->entry[idx].ch_comment_len = -1; in _zip_unchange()
82 _zip_unchange_data(za->entry+idx); in _zip_unchange()