diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-28 12:53:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-28 12:53:08 +0000 |
commit | b4265b033c207c7af9fa4e2397322ed2c826eb1d (patch) | |
tree | 91ed62885aca952b39f9a949d701514bde37f040 /mdk-stage1 | |
parent | a51a17bd32e665bc3a4f34b0f91b3d65d7528b4d (diff) | |
download | drakx-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.c | 5 |
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) { |