discover/grub2: strdup strings used in the environment
authorJeremy Kerr <jk@ozlabs.org>
Tue, 1 Oct 2013 04:42:57 +0000 (12:42 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 1 Oct 2013 04:52:00 +0000 (12:52 +0800)
commit55782f91e21dc8b9d296f13f0562670095042d1f
tree2423fcd09ab88a7105e6acae33406ca915201577
parent57293e2111fcba58a7b399cb1332012414bffeeb
discover/grub2: strdup strings used in the environment

Use a copy of the name & value pairs that we pass to the environment, as
the data loaded from load_env will be talloc_free-ed.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/script.c