From b12d51994790ef2896d99f24b0bfb3e20a4f0912 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 6 May 2013 11:12:42 +0800 Subject: discover/kboot: Fix boot_option initialisation We're not populating d_opt->option, so are returning invalid boot options from the kboot parser. Signed-off-by: Jeremy Kerr --- discover/kboot-parser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'discover/kboot-parser.c') diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index f097674..4064a3e 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -45,6 +45,7 @@ static void kboot_process_pair(struct conf_context *conf, const char *name, opt->id = talloc_asprintf(opt, "%s#%s", conf->dc->device->device->id, name); opt->name = talloc_strdup(opt, name); + d_opt->option = opt; args = talloc_strdup(opt, ""); initrd = conf_get_global_option(conf, "initrd"); -- cgit v1.2.1