X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=devices%2Fkboot-parser.c;h=b845d8498779184a5bbe576f9c7c45161838fab0;hb=3951bcba53d6b884d2d66e2f79a07e03bd8b2b68;hp=ba4fbf5f26bad3b6b43e49f8229aa3d18e967400;hpb=7357537d64334c9df27d702ea2d5827daf9e0a5b;p=petitboot 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, ' ');