Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Dec 6, 2023
1 parent b6052ac commit fd4bbd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mz_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ int zipOpenNewFileInZip5(zipFile file, const char *filename, const zip_fileinfo
return ZIP_PARAMERROR;

// The filename and comment length must fit in 16 bits.
if ((filename != NULL) && (strlen(filename) > 0xffff))
if (filename && strlen(filename) > 0xffff)
return ZIP_PARAMERROR;
if ((comment != NULL) && (strlen(comment) > 0xffff))
if (comment && strlen(comment) > 0xffff)
return ZIP_PARAMERROR;

memset(&file_info, 0, sizeof(file_info));
Expand Down

0 comments on commit fd4bbd7

Please sign in to comment.