From 272281d66a3f032d910f4461a7dbb02c720353ce Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 24 Jul 2007 21:08:50 +0000 Subject: uninit variable causing crash; veins@evilkittens.org --- usr.bin/pmdb/elf_syms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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 * 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) -- cgit v1.2.3