diff options
author | Karel Zak <kzak@redhat.com> | 2014-10-07 11:33:46 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-10-24 11:10:06 +0200 |
commit | 0715ae1dd1131853a70727c5b167470355cc3261 (patch) | |
tree | 689858d44a4b56b4f66e563a3801df5f49c2fd70 | |
parent | 12bbc7d101258930400f8d111d9e538b0e06cf85 (diff) | |
download | util-linux-0715ae1dd1131853a70727c5b167470355cc3261.tar.gz |
libfdisk: fix add_logical() assert
The zero index is absolutely valid for extended partition (it means
extended partition could be the first partition on the device).
Reported-by: Christoph Hoopmann <christophhoopmann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | libfdisk/src/dos.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 7170f63dd..335477720 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -1158,7 +1158,6 @@ static int add_logical(struct fdisk_context *cxt, struct fdisk_partition *pa) assert(cxt); assert(cxt->label); assert(self_label(cxt)->ext_offset); - assert(self_label(cxt)->ext_index); DBG(LABEL, ul_debug("DOS: nparts max: %zu", cxt->label->nparts_max)); pe = self_pte(cxt, cxt->label->nparts_max); |