projects
/
unzip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e298fe4
)
Remove unneeded check
author
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:48:04 +0000
(
04:48
+0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:48:04 +0000
(
04:48
+0100)
unzip.c
patch
|
blob
|
history
diff --git
a/unzip.c
b/unzip.c
index 44fd25d8a17f787d060bbaeaec649f4e12442029..118a18a7bae3906c77d5cecf62f73879ac11c162 100755
(executable)
--- a/
unzip.c
+++ b/
unzip.c
@@
-701,7
+701,7
@@
static void extract_zip (const char *path) {
#endif
- if (
cfh.ext_attrs & EXT_ATTR_DIR ||
(p = strrchr (cfh.name, ch))) {
+ if ((p = strrchr (cfh.name, ch))) {
if (p) { *p = '\0'; }
@@
-813,7
+813,7
@@
static void extract_zip (const char *path) {
if (p) { *p = ch; }
free (temp);
- if (cfh.
ext_attrs & EXT_ATTR_DIR || cfh.
name[cfh.name_len - 1] == ch) {
+ if (cfh.name[cfh.name_len - 1] == ch) {
free (cfh.name);