Rizin
unix-like reverse engineering framework and cli tools
zip_unchange_data.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

void _zip_unchange_data (zip_entry_t *ze)
 

Function Documentation

◆ _zip_unchange_data()

void _zip_unchange_data ( zip_entry_t ze)

Definition at line 38 of file zip_unchange_data.c.

38  {
39  if (ze->source) {
41  ze->source = NULL;
42  }
43 
46  if (ze->changes->changed == 0) {
48  ze->changes = NULL;
49  }
50  }
51 
52  ze->deleted = 0;
53 }
#define NULL
Definition: cris-opc.c:27
ZIP_EXTERN void zip_source_free(zip_source_t *_Nullable)
zip_int32_t comp_method
Definition: zipint.h:336
zip_uint32_t changed
Definition: zipint.h:327
zip_source_t * source
Definition: zipint.h:411
zip_dirent_t * changes
Definition: zipint.h:410
bool deleted
Definition: zipint.h:412
void _zip_dirent_free(zip_dirent_t *zde)
Definition: zip_dirent.c:258
#define ZIP_CM_REPLACED_DEFAULT
Definition: zipint.h:72
#define ZIP_DIRENT_COMP_METHOD
Definition: zipint.h:316

References _zip_dirent_free(), zip_dirent::changed, zip_entry::changes, zip_dirent::comp_method, zip_entry::deleted, NULL, zip_entry::source, ZIP_CM_REPLACED_DEFAULT, ZIP_DIRENT_COMP_METHOD, and zip_source_free().

Referenced by _zip_entry_finalize(), _zip_file_replace(), and _zip_unchange().