View | Details | Raw Unified | Return to bug 259011
Collapse All | Expand All

(-)unzip/unzip.c (-2 / +13 lines)
Lines 211-216 Link Here
211
	char *str;
211
	char *str;
212
	size_t i, len;
212
	size_t i, len;
213
213
214
	if (path == NULL)
215
		return (0);
216
 
214
	len = strlen(path);
217
	len = strlen(path);
215
	while (len && path[len - 1] == '/')
218
	while (len && path[len - 1] == '/')
216
		len--;
219
		len--;
Lines 697-703 Link Here
697
	mode_t filetype;
700
	mode_t filetype;
698
	char *p, *q;
701
	char *p, *q;
699
702
700
	pathname = pathdup(archive_entry_pathname(e));
703
	if ((pathname = pathdup(archive_entry_pathname(e))) == 0) {
704
		warningx("skipping NULL entry");
705
		ac(archive_read_data_skip(a));
706
		return;
707
	}
701
	filetype = archive_entry_filetype(e);
708
	filetype = archive_entry_filetype(e);
702
709
703
	/* sanity checks */
710
	/* sanity checks */
Lines 760-766 Link Here
760
	char *pathname;
767
	char *pathname;
761
	mode_t filetype;
768
	mode_t filetype;
762
769
763
	pathname = pathdup(archive_entry_pathname(e));
770
	if ((pathname = pathdup(archive_entry_pathname(e))) == 0) {
771
		warningx("skipping NULL entry");
772
		ac(archive_read_data_skip(a));
773
		return;
774
	}
764
	filetype = archive_entry_filetype(e);
775
	filetype = archive_entry_filetype(e);
765
776
766
	/* I don't think this can happen in a zipfile.. */
777
	/* I don't think this can happen in a zipfile.. */

Return to bug 259011