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
c849fe6dd8
commit
fa9c6cb843
@ -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