aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-12 19:26:28 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-12 19:26:28 +0000
commit96723f5a89c8039a5e92fc0ad3f6de291a65b76b (patch)
treeacadea5594d7ee9ca9ff7c38b8a4bdc9af05245a /usr.sbin
parentaf934ea3ba5df1d8f18c141ba1685e70e7356bac (diff)
downloadsrc-96723f5a89c8039a5e92fc0ad3f6de291a65b76b.tar.gz
src-96723f5a89c8039a5e92fc0ad3f6de291a65b76b.zip
Iniailize str so ucs2_to_utf8 won't free stack garbage.
CID: 1381037 Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=326805
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/efivar/efiutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/efivar/efiutil.c b/usr.sbin/efivar/efiutil.c
index 20efab54f1a3..786a1c41d499 100644
--- a/usr.sbin/efivar/efiutil.c
+++ b/usr.sbin/efivar/efiutil.c
@@ -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;