summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-01-19 20:25:36 +0000
committermiod <miod@openbsd.org>2015-01-19 20:25:36 +0000
commit2b8e2220cd9d8f5e3c015956007eba9b46623094 (patch)
tree345715d8169b93734f768416b54b67bd1fc713fa
parentAdd arc4random/getentropy shims for NetBSD. (diff)
downloadwireguard-openbsd-2b8e2220cd9d8f5e3c015956007eba9b46623094.tar.xz
wireguard-openbsd-2b8e2220cd9d8f5e3c015956007eba9b46623094.zip
Missing initialization; tjenahej@speedmail.se
-rw-r--r--usr.bin/nm/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/nm/elf.c b/usr.bin/nm/elf.c
index 74b3bd35979..f2ab39d63fd 100644
--- a/usr.bin/nm/elf.c
+++ b/usr.bin/nm/elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf.c,v 1.24 2015/01/16 06:40:10 deraadt Exp $ */
+/* $OpenBSD: elf.c,v 1.25 2015/01/19 20:25:36 miod Exp $ */
/*
* Copyright (c) 2003 Michael Shalayeff
@@ -550,7 +550,7 @@ elf_symload(const char *name, FILE *fp, off_t foff, Elf_Ehdr *eh,
}
stab = NULL;
- *pnames = NULL; *psnames = NULL;
+ *pnames = NULL; *psnames = NULL; *pnrawnames = 0;
elf_symloadx(name, fp, foff, eh, shdr, shstr, pnames,
psnames, pstabsize, pnrawnames, ELF_STRTAB, ELF_SYMTAB);
if (stab == NULL) {