Lines Matching refs:za
43 zip_set_archive_comment(struct zip *za, const char *comment, zip_uint16_t len) in zip_set_archive_comment() argument
47 if (ZIP_IS_RDONLY(za)) { in zip_set_archive_comment()
48 _zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in zip_set_archive_comment()
53 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_set_archive_comment()
58 …if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, ZIP_FL_ENC_GUESS, &za->error)) == NUL… in zip_set_archive_comment()
63 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_set_archive_comment()
70 _zip_string_free(za->comment_changes); in zip_set_archive_comment()
71 za->comment_changes = NULL; in zip_set_archive_comment()
73 if (((za->comment_orig && _zip_string_equal(za->comment_orig, cstr)) in zip_set_archive_comment()
74 || (za->comment_orig == NULL && cstr == NULL))) { in zip_set_archive_comment()
76 za->comment_changed = 0; in zip_set_archive_comment()
79 za->comment_changes = cstr; in zip_set_archive_comment()
80 za->comment_changed = 1; in zip_set_archive_comment()