Source-Changes-HG archive

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

[src/trunk]: src/tests/libexec/ld.elf_so Fix build with clang.



details:   https://anonhg.NetBSD.org/src/rev/00ee0b16559a
branches:  trunk
changeset: 939992:00ee0b16559a
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Sep 29 16:34:07 2020 +0000

description:
Fix build with clang.

diffstat:

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

diffs (18 lines):

diff -r eca4c04c595e -r 00ee0b16559a tests/libexec/ld.elf_so/t_rtld_r_debug.c
--- a/tests/libexec/ld.elf_so/t_rtld_r_debug.c  Tue Sep 29 15:29:17 2020 +0000
+++ b/tests/libexec/ld.elf_so/t_rtld_r_debug.c  Tue Sep 29 16:34:07 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_rtld_r_debug.c,v 1.1 2020/09/22 01:09:32 kamil Exp $ */
+/*     $NetBSD: t_rtld_r_debug.c,v 1.2 2020/09/29 16:34:07 roy Exp $   */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
 static struct r_debug *
 get_rtld_r_debug(void)
 {
-       struct r_debug *debug;
+       struct r_debug *debug = NULL;
        Elf_Dyn *dynp;
 
        for (dynp = get_dynamic_section(); dynp->d_tag != DT_NULL; dynp++) {



Home | Main Index | Thread Index | Old Index