Lines Matching refs:za
41 zip_set_archive_comment(zip_t *za, const char *comment, zip_uint16_t len) in zip_set_archive_comment() argument
45 if (ZIP_IS_RDONLY(za)) { in zip_set_archive_comment()
46 zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in zip_set_archive_comment()
51 zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_set_archive_comment()
56 …if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, ZIP_FL_ENC_GUESS, &za->error)) == NUL… in zip_set_archive_comment()
61 zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_set_archive_comment()
68 _zip_string_free(za->comment_changes); in zip_set_archive_comment()
69 za->comment_changes = NULL; in zip_set_archive_comment()
71 if (((za->comment_orig && _zip_string_equal(za->comment_orig, cstr)) in zip_set_archive_comment()
72 || (za->comment_orig == NULL && cstr == NULL))) { in zip_set_archive_comment()
74 za->comment_changed = 0; in zip_set_archive_comment()
77 za->comment_changes = cstr; in zip_set_archive_comment()
78 za->comment_changed = 1; in zip_set_archive_comment()