Iniailize str so ucs2_to_utf8 won't free stack garbage.

CID: 1381037
Sponsored by: Netflix
This commit is contained in:
imp 2017-12-12 19:26:28 +00:00
parent 8749eeff28
commit 9e6a33ea0a

View File

@ -125,7 +125,7 @@ efi_print_load_option(uint8_t *data, size_t datalen, int Aflag, int bflag, int u
uint16_t fplen;
efi_char *descr;
efidp dp, edp;
char *str;
char *str = NULL;
char buf[1024];
int len;
void *opt;