From 640fb51d866e7ac8a92f61a2f69145bfe6b13699 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Thu, 3 Mar 2011 10:11:17 -0800 Subject: Reapply patch from http://codereview.chromium.org/6594092/ (somehow that never got committed) Change-Id: I304e594066c5dd72fc7cf37d31e27b1096ae1a38 BUG=12282 TEST=make && make runtests Review URL: http://codereview.chromium.org/6610019 --- utility/load_kernel_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utility/load_kernel_test.c') diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c index 38e4104f..8d95ef0c 100644 --- a/utility/load_kernel_test.c +++ b/utility/load_kernel_test.c @@ -26,6 +26,7 @@ /* Global variables for stub functions */ static LoadKernelParams lkp; +static VbNvContext vnc; static FILE *image_file = NULL; @@ -83,6 +84,8 @@ int main(int argc, char* argv[]) { Memset(&lkp, 0, sizeof(LoadKernelParams)); lkp.bytes_per_lba = LBA_BYTES; lkp.boot_flags = BOOT_FLAG_RECOVERY; + Memset(&vnc, 0, sizeof(VbNvContext)); + lkp.nv_context = &vnc; /* Parse options */ opterr = 0; -- cgit v1.2.1