diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-08 14:00:44 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-08 14:00:44 +0000 |
commit | fa9c6cb84345e3cadad989b7c5ac32a0a32782ac (patch) | |
tree | 94544ad08a61167c67c26b5c135cb3d3986f2d0e /lib/libdisk/write_i386_disk.c | |
parent | c849fe6dd8c059f480a4459effbc3ffa47187e02 (diff) | |
download | FreeBSD-src-fa9c6cb84345e3cadad989b7c5ac32a0a32782ac.zip FreeBSD-src-fa9c6cb84345e3cadad989b7c5ac32a0a32782ac.tar.gz |
Don't set a variable to a bogus value right before setting it to the
correct value in the next statement.
Diffstat (limited to 'lib/libdisk/write_i386_disk.c')
-rw-r--r-- | lib/libdisk/write_i386_disk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libdisk/write_i386_disk.c b/lib/libdisk/write_i386_disk.c index 6922776..15808c8 100644 --- a/lib/libdisk/write_i386_disk.c +++ b/lib/libdisk/write_i386_disk.c @@ -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; |