From 40e6878d7c34d013e78b3418585b935394e29bef Mon Sep 17 00:00:00 2001 From: "JianFeng,Zhou" Date: Wed, 10 Jun 2020 08:12:41 +0800 Subject: [PATCH] set initial value of serial number to zeros if the initial value of serial number is set to non-zero, the real serial number will not be read. Tracked-On: OAM-91337 Signed-off-by: JianFeng,Zhou --- libkernelflinger/vars.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libkernelflinger/vars.c b/libkernelflinger/vars.c index 6454e961..57dc26d4 100644 --- a/libkernelflinger/vars.c +++ b/libkernelflinger/vars.c @@ -798,9 +798,7 @@ char *get_serialno_var() char *get_serial_number(void) { static char bios_serialno[SERIALNO_MAX_SIZE + 1]; - static char serialno[SERIALNO_MAX_SIZE + 1] = - {'0', '0', 'b', 'a', 'd', 'b', 'i', 'o', 's', - '0', '0', 'b', 'a', 'd', 'b', 'i', 'o', 's', '0', '0'}; + static char serialno[SERIALNO_MAX_SIZE + 1]; char *pos; unsigned int zeroes = 0; UINTN len;