Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so shut gcc up about a bogus possibly used be...



details:   https://anonhg.NetBSD.org/src/rev/9e4632db21f6
branches:  trunk
changeset: 494165:9e4632db21f6
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 03 03:33:52 2000 +0000

description:
shut gcc up about a bogus possibly used before initialized.

diffstat:

 libexec/ld.elf_so/symbol.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a884d353e822 -r 9e4632db21f6 libexec/ld.elf_so/symbol.c
--- a/libexec/ld.elf_so/symbol.c        Mon Jul 03 03:32:57 2000 +0000
+++ b/libexec/ld.elf_so/symbol.c        Mon Jul 03 03:33:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: symbol.c,v 1.7 1999/11/10 18:48:19 thorpej Exp $        */
+/*     $NetBSD: symbol.c,v 1.8 2000/07/03 03:33:52 matt Exp $   */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -163,7 +163,7 @@
        bool in_plt;
 {
        Elf_Word symnum = ELF_R_SYM(r_info);
-       const Elf_Sym  *ref;
+       const Elf_Sym  *ref = NULL;
        const Elf_Sym  *def;
        const Elf_Sym  *symp;
        const Obj_Entry *obj;



Home | Main Index | Thread Index | Old Index