From 6f4aa554d0cbd0b9df16c4e1523fb957b26cd401 Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 15 Feb 1999 00:49:33 +0000 Subject: Unbreak the fixit floppy. Clean up some of the media handling to use common routines. --- usr.sbin/sysinstall/media.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall/media.c') 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; } -- cgit v1.1