summaryrefslogtreecommitdiffstats
path: root/discover/grub2/grub2.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-13 15:25:33 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commitc12f6bacbd96fda27252bdb79781e5743c01da60 (patch)
treea334291b6a860e4d5dad6851fee85d8c28c9c9b5 /discover/grub2/grub2.h
parentfb5a2b71f85614114663c86dbba62c5c491a11b9 (diff)
downloadtalos-petitboot-c12f6bacbd96fda27252bdb79781e5743c01da60.tar.gz
talos-petitboot-c12f6bacbd96fda27252bdb79781e5743c01da60.zip
discover/grub2: Fix word append
The parser was setting word->next on the top-level word, resulting in word chains of a maximum length of 2. Instead, use a last pointer to always append to the last word. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2/grub2.h')
-rw-r--r--discover/grub2/grub2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/grub2/grub2.h b/discover/grub2/grub2.h
index cbd69dc..970c500 100644
--- a/discover/grub2/grub2.h
+++ b/discover/grub2/grub2.h
@@ -19,6 +19,7 @@ struct grub2_word {
} var;
};
struct grub2_word *next;
+ struct grub2_word *last;
struct list_item argv_list;
};
OpenPOWER on IntegriCloud