diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-17 14:05:37 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-17 14:05:37 +0000 |
commit | 22c16683efc43bdf48136767bf7217a6d0ab7e24 (patch) | |
tree | 69781237eb0df6fa97b2dc8103469301bb9c020c /usr.sbin/sade | |
parent | b917141478e28b14e0a4bf5312dea7481bc93f3e (diff) | |
download | FreeBSD-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 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/install.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index ea3db22..245cdb5 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/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; } |