git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
440b41b
)
begin_read(): Remove redundant check
author
Eric Biggers
<ebiggers3@gmail.com>
Sun, 3 Mar 2013 20:08:33 +0000
(14:08 -0600)
committer
Eric Biggers
<ebiggers3@gmail.com>
Sun, 3 Mar 2013 21:56:47 +0000
(15:56 -0600)
src/header.c
patch
|
blob
|
history
diff --git
a/src/header.c
b/src/header.c
index 5b4d0b9a9441f49a2c7f73ea5a78a75f973b5214..3d60138339e527c8d9383da3330170625e5cc618 100644
(file)
--- a/
src/header.c
+++ b/
src/header.c
@@
-113,8
+113,8
@@
int read_header(FILE *fp, struct wim_header *hdr, int open_flags)
return WIMLIB_ERR_INVALID_PART_NUMBER;
}
- if (!(open_flags & WIMLIB_OPEN_FLAG_SPLIT_OK)
-
&& (hdr->part_number != 1 || hdr->total_parts != 1)
)
+ if (!(open_flags & WIMLIB_OPEN_FLAG_SPLIT_OK)
&&
+
hdr->total_parts != 1
)
{
ERROR("This WIM is part %u of a %u-part WIM",
hdr->part_number, hdr->total_parts);