summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-11-17 11:41:12 -0500
committerPeter Jones <pjones@redhat.com>2015-11-17 11:41:12 -0500
commit000261ca884ba3b4a5dda0d47249d540f0fbd43d (patch)
tree1872c206128c957b5baf16de487cc6af96fa7cf5
parent4d70bbd894f9f244a809b3d965eb1c3a8b27b9fa (diff)
downloadefi-boot-shim-000261ca884ba3b4a5dda0d47249d540f0fbd43d.tar.gz
efi-boot-shim-000261ca884ba3b4a5dda0d47249d540f0fbd43d.zip
Don't test for the 0 character on the wrong half of the UCS2-LE char.
Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--ucs2.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/ucs2.h b/ucs2.h
index 91da129a..010d0966 100644
--- a/ucs2.h
+++ b/ucs2.h
@@ -106,8 +106,6 @@ count_ucs2_strings(UINT8 *data, UINTN data_size)
if (data[i] != 0)
return 0;
} else if (data[i] == 0) {
- if (i+1 >= data_size || data[i+1] != 0)
- return 0;
last_nul_pos = i;
num_nuls++;
}