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/c98a88e92cc9
branches:  trunk
changeset: 955445:c98a88e92cc9
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 37bbc96ac13d -r c98a88e92cc9 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