summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-04-05 19:19:35 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-04-05 19:19:35 +1000
commit3951bcba53d6b884d2d66e2f79a07e03bd8b2b68 (patch)
tree1d0edf881632ade4440b76bf60b1dbe19316b9aa
parent7357537d64334c9df27d702ea2d5827daf9e0a5b (diff)
downloadtalos-petitboot-3951bcba53d6b884d2d66e2f79a07e03bd8b2b68.tar.gz
talos-petitboot-3951bcba53d6b884d2d66e2f79a07e03bd8b2b68.zip
Fix random bytes in string in kboot parser
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-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