summaryrefslogtreecommitdiffstats
path: root/release/sysinstall
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-17 14:05:37 +0000
committerjkh <jkh@FreeBSD.org>1997-01-17 14:05:37 +0000
commit22c16683efc43bdf48136767bf7217a6d0ab7e24 (patch)
tree69781237eb0df6fa97b2dc8103469301bb9c020c /release/sysinstall
parentb917141478e28b14e0a4bf5312dea7481bc93f3e (diff)
downloadFreeBSD-src-22c16683efc43bdf48136767bf7217a6d0ab7e24.zip
FreeBSD-src-22c16683efc43bdf48136767bf7217a6d0ab7e24.tar.gz
Whoops! Fix an infinite loop I lovingly introduced into this code
with a previous commit.
Diffstat (limited to 'release/sysinstall')
-rw-r--r--release/sysinstall/install.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c
index ea3db22..245cdb5 100644
--- a/release/sysinstall/install.c
+++ b/release/sysinstall/install.c
@@ -499,8 +499,11 @@ installNovice(dialogMenuItem *self)
dialog_clear_norefresh();
if (!dmenuOpenSimple(&MenuDistributions, FALSE))
return DITEM_FAILURE | DITEM_RESTORE;
-
- if (!Dists && msgYesNo("No distributions selected. Revisit the distributions menu?"))
+
+ if (Dists)
+ break;
+
+ if (msgYesNo("No distributions selected. Revisit the distributions menu?"))
return DITEM_FAILURE | DITEM_RESTORE;
}
OpenPOWER on IntegriCloud