summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-07-24 21:08:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-07-24 21:08:50 +0000
commit272281d66a3f032d910f4461a7dbb02c720353ce (patch)
tree5695b8154127f231ec086707f4535f5255c05643 /usr.bin
parent9532101f5c2adccee06553a9d1fc35675b77c820 (diff)
uninit variable causing crash; veins@evilkittens.org
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pmdb/elf_syms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pmdb/elf_syms.c b/usr.bin/pmdb/elf_syms.c
index 720bad1cdcd..57cc27222ea 100644
--- a/usr.bin/pmdb/elf_syms.c
+++ b/usr.bin/pmdb/elf_syms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf_syms.c,v 1.8 2003/03/28 23:33:27 mickey Exp $ */
+/* $OpenBSD: elf_syms.c,v 1.9 2007/07/24 21:08:49 deraadt Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -268,7 +268,7 @@ int
elf_lookup(struct pstate *ps, const char *name, reg *res)
{
struct sym_table *st;
- Elf_Sym *s;
+ Elf_Sym *s = NULL;
TAILQ_FOREACH(st, &ps->ps_syms, st_list) {
if ((s = elf_lookup_table(ST_TO_ESH(st), name)) != NULL)