diff options
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) { |