--- embedaddon/php/ext/zip/lib/zip_get_archive_comment.c 2012/02/21 23:48:05 1.1.1.1 +++ embedaddon/php/ext/zip/lib/zip_get_archive_comment.c 2013/07/22 01:32:11 1.1.1.2 @@ -42,11 +42,11 @@ zip_get_archive_comment(struct zip *za, int *lenp, int { if ((flags & ZIP_FL_UNCHANGED) || (za->ch_comment_len == -1)) { - if (za->cdir) { - if (lenp != NULL) - *lenp = za->cdir->comment_len; - return za->cdir->comment; - } + if (za->cdir) { + if (lenp != NULL) + *lenp = za->cdir->comment_len; + return za->cdir->comment; + } else { if (lenp != NULL) *lenp = -1;