diff options
-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; |