summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-28 10:06:33 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-28 10:06:33 +0000
commit817f1a3cdd01d553aa57491526ac4fc760150bfc (patch)
tree8420e27f2b29da585b1099b7c89c7cfa0779d0da
parente292d64180546097aedf5a26bb0045d85a42947f (diff)
downloaddrakx-817f1a3cdd01d553aa57491526ac4fc760150bfc.tar
drakx-817f1a3cdd01d553aa57491526ac4fc760150bfc.tar.gz
drakx-817f1a3cdd01d553aa57491526ac4fc760150bfc.tar.bz2
drakx-817f1a3cdd01d553aa57491526ac4fc760150bfc.tar.xz
drakx-817f1a3cdd01d553aa57491526ac4fc760150bfc.zip
don't corrupt the choice variable
-rw-r--r--mdk-stage1/network.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index b7b2e05af..ef173f992 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -666,8 +666,7 @@ static char * interface_select(void)
return *interfaces;
/* this can't be done in ask_from_list_comments_auto because "auto" isn't in the interfaces list */
- choice = get_auto_value("interface");
- if (choice && streq(choice, "auto")) {
+ if (streq(get_auto_value("interface"), "auto")) {
choice = auto_select_up_intf();
if (choice)
return choice;