X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fgrub2%2Fparser-api.c;h=aa5997851a7ad42947e6810e2deb41b7f1d1bba1;hp=a3166731db809d1176605a9d97051017a487ec98;hb=e492b596187d283cfbd65a098fe1b2d0dafa311e;hpb=0a47d0c3a25552e0661fd919c4f87f990b081245 diff --git a/discover/grub2/parser-api.c b/discover/grub2/parser-api.c index a316673..aa59978 100644 --- a/discover/grub2/parser-api.c +++ b/discover/grub2/parser-api.c @@ -73,6 +73,7 @@ struct grub2_word *create_word_text(struct grub2_parser *parser, { struct grub2_word *word = talloc(parser, struct grub2_word); word->type = GRUB2_WORD_TEXT; + word->split = false; word->text = talloc_strdup(word, text); word->next = NULL; word->last = word; @@ -84,8 +85,8 @@ struct grub2_word *create_word_var(struct grub2_parser *parser, { struct grub2_word *word = talloc(parser, struct grub2_word); word->type = GRUB2_WORD_VAR; - word->var.name = talloc_strdup(word, name); - word->var.split = split; + word->name = talloc_strdup(word, name); + word->split = split; word->next = NULL; word->last = word; return word;