summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devices/kboot-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/devices/kboot-parser.c b/devices/kboot-parser.c
index ba4fbf5..b845d84 100644
--- a/devices/kboot-parser.c
+++ b/devices/kboot-parser.c
@@ -106,6 +106,7 @@ static int parse_option(struct boot_option *opt, char *config)
opt->boot_image_file = join_paths(mountpoint, config);
cmdline = malloc(buf_size);
+ *cmdline = 0;
for (pos++; pos;) {
pos = get_param_pair(pos, &name, &value, ' ');
OpenPOWER on IntegriCloud