summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-28 12:53:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-28 12:53:08 +0000
commitb4265b033c207c7af9fa4e2397322ed2c826eb1d (patch)
tree91ed62885aca952b39f9a949d701514bde37f040 /mdk-stage1
parenta51a17bd32e665bc3a4f34b0f91b3d65d7528b4d (diff)
downloaddrakx-b4265b033c207c7af9fa4e2397322ed2c826eb1d.tar
drakx-b4265b033c207c7af9fa4e2397322ed2c826eb1d.tar.gz
drakx-b4265b033c207c7af9fa4e2397322ed2c826eb1d.tar.bz2
drakx-b4265b033c207c7af9fa4e2397322ed2c826eb1d.tar.xz
drakx-b4265b033c207c7af9fa4e2397322ed2c826eb1d.zip
don't prompt if no modules, otherwise "Ok" in ask_from_list_comments() gets a segfault
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/modules.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 8fb92b6d5..cd8e981d3 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -530,7 +530,10 @@ enum return_type ask_insmod(enum driver_type type)
p_modules++;
p_descrs++;
}
- results = ask_from_list_comments(msg, modules, descrs, &choice);
+ if (modules && *modules)
+ results = ask_from_list_comments(msg, modules, descrs, &choice);
+ else
+ results = RETURN_BACK;
}
if (results == RETURN_OK) {