diff options
| author | Murray Stokely <murray@FreeBSD.org> | 2002-01-29 22:35:40 +0000 |
|---|---|---|
| committer | Murray Stokely <murray@FreeBSD.org> | 2002-01-29 22:35:40 +0000 |
| commit | 7cdcc9fecda6db0604fa3fd839d8314c26eba2df (patch) | |
| tree | 5f05f36e361bb0ec723462888995f32b356a6c67 /usr.sbin/sade/label.c | |
| parent | 137eab1898b1812ec0a3b6cc5b1f4e4a76b963c2 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sade/label.c')
| -rw-r--r-- | usr.sbin/sade/label.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index a6b71b380a65..b9752d56113c 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -1034,7 +1034,8 @@ diskLabel(Device *dev) break; case 'T': /* Toggle newfs state */ - if (label_chunk_info[here].type == PART_FILESYSTEM) { + if ((label_chunk_info[here].type == PART_FILESYSTEM) && + (label_chunk_info[here].c->private_data)) { PartInfo *pi = ((PartInfo *)label_chunk_info[here].c->private_data); if (!pi->newfs) label_chunk_info[here].c->flags |= CHUNK_NEWFS; |
