aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/modprobe-small.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 31a215a29..b3c0768ee 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -1010,9 +1010,7 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
1010 char **arg = argv; 1010 char **arg = argv;
1011 while (*++arg) { 1011 while (*++arg) {
1012 /* Enclose options in quotes */ 1012 /* Enclose options in quotes */
1013 char *s = options; 1013 xasprintf_inplace(options, "%s \"%s\"", options ? options : "", *arg);
1014 options = xasprintf("%s \"%s\"", s ? s : "", *arg);
1015 free(s);
1016 *arg = NULL; 1014 *arg = NULL;
1017 } 1015 }
1018# else 1016# else