aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sade/label.c
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2002-01-29 22:35:40 +0000
committerMurray Stokely <murray@FreeBSD.org>2002-01-29 22:35:40 +0000
commit7cdcc9fecda6db0604fa3fd839d8314c26eba2df (patch)
tree5f05f36e361bb0ec723462888995f32b356a6c67 /usr.sbin/sade/label.c
parent137eab1898b1812ec0a3b6cc5b1f4e4a76b963c2 (diff)
Notes
Diffstat (limited to 'usr.sbin/sade/label.c')
-rw-r--r--usr.sbin/sade/label.c3
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;