diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-18 16:26:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-18 16:26:39 +0000 |
commit | 29201016968c89b16af0c4367cede144d3510467 (patch) | |
tree | f49d5714cb70832bfa4ae7df966b9b3f3d37bb2b | |
parent | a5da101da009fd3e30a6fd64b4e583c5bdf4a48e (diff) | |
download | drakx-29201016968c89b16af0c4367cede144d3510467.tar drakx-29201016968c89b16af0c4367cede144d3510467.tar.gz drakx-29201016968c89b16af0c4367cede144d3510467.tar.bz2 drakx-29201016968c89b16af0c4367cede144d3510467.tar.xz drakx-29201016968c89b16af0c4367cede144d3510467.zip |
simplify
-rw-r--r-- | mdk-stage1/modules.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index 617836f54..2f84ba405 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -423,8 +423,7 @@ enum return_type ask_insmod(enum driver_type type) { enum return_type results; char * choice; - char * modules_dir = asprintf_("%s", modules_directory); - char ** dlist = list_directory(modules_dir); + char ** dlist = list_directory(modules_directory); char ** modules = alloca(sizeof(char *) * (string_array_length(dlist) + 1)); char ** descrs = alloca(sizeof(char *) * (string_array_length(dlist) + 1)); char ** p_dlist = dlist; |