diff options
author | jkh <jkh@FreeBSD.org> | 1999-02-15 00:49:33 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-02-15 00:49:33 +0000 |
commit | 6f4aa554d0cbd0b9df16c4e1523fb957b26cd401 (patch) | |
tree | 2012f63a47953fbde3a3f7f1efb0e1a84da36843 /usr.sbin/sysinstall/media.c | |
parent | e504062bce0ba314c8fa2b49f6bd5387dbabed60 (diff) | |
download | FreeBSD-src-6f4aa554d0cbd0b9df16c4e1523fb957b26cd401.zip FreeBSD-src-6f4aa554d0cbd0b9df16c4e1523fb957b26cd401.tar.gz |
Unbreak the fixit floppy.
Clean up some of the media handling to use common routines.
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r-- | usr.sbin/sysinstall/media.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 61640e8..7384b41 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: media.c,v 1.94 1998/12/22 12:31:25 jkh Exp $ + * $Id: media.c,v 1.95 1999/02/05 22:15:50 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -204,6 +204,8 @@ mediaSetFloppy(dialogMenuItem *self) } else mediaDevice = devs[0]; + if (mediaDevice) + mediaDevice->private = NULL; return (mediaDevice ? DITEM_LEAVE_MENU : DITEM_FAILURE) | DITEM_RESTORE; } |