From 817f1a3cdd01d553aa57491526ac4fc760150bfc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 28 Jul 2005 10:06:33 +0000 Subject: don't corrupt the choice variable --- mdk-stage1/network.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.1