Don't set a variable to a bogus value right before setting it to the
correct value in the next statement.
This commit is contained in:
parent
7f55ebcd18
commit
a96977d0ab
@ -110,7 +110,6 @@ Write_Disk(const struct disk *d1)
|
||||
for (c1 = d1->chunks->part; c1; c1 = c1->next) {
|
||||
if (c1->type == unused) continue;
|
||||
if (!strcmp(c1->name, "X")) continue;
|
||||
j = c1->name[4] - '1';
|
||||
j = c1->name[strlen(d1->name) + 1] - '1';
|
||||
if (j < 0 || j > 3)
|
||||
continue;
|
||||
|
@ -110,7 +110,6 @@ Write_Disk(const struct disk *d1)
|
||||
for (c1 = d1->chunks->part; c1; c1 = c1->next) {
|
||||
if (c1->type == unused) continue;
|
||||
if (!strcmp(c1->name, "X")) continue;
|
||||
j = c1->name[4] - '1';
|
||||
j = c1->name[strlen(d1->name) + 1] - '1';
|
||||
if (j < 0 || j > 3)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user