Iniailize str so ucs2_to_utf8 won't free stack garbage.

CID: 1381037
Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-12-12 19:26:28 +00:00
parent af934ea3ba
commit 96723f5a89

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;