summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index 411833ee..35340acf 100644
--- a/shim.c
+++ b/shim.c
@@ -1520,7 +1520,7 @@ EFI_STATUS set_second_stage (EFI_HANDLE image_handle)
* case.
*/
if (strings == 1) {
- UINT16 *cur = li->LoadOptions;
+ UINT16 *cur = start = li->LoadOptions;
/* replace L' ' with L'\0' if we find any */
for (i = 0; i < li->LoadOptionsSize / 2; i++) {