Module Name: src
Committed By: roy
Date: Tue Sep 29 16:34:08 UTC 2020
Modified Files:
src/tests/libexec/ld.elf_so: t_rtld_r_debug.c
Log Message:
Fix build with clang.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/libexec/ld.elf_so/t_rtld_r_debug.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/libexec/ld.elf_so/t_rtld_r_debug.c
diff -u src/tests/libexec/ld.elf_so/t_rtld_r_debug.c:1.1 src/tests/libexec/ld.elf_so/t_rtld_r_debug.c:1.2
--- src/tests/libexec/ld.elf_so/t_rtld_r_debug.c:1.1 Tue Sep 22 01:09:32 2020
+++ src/tests/libexec/ld.elf_so/t_rtld_r_debug.c Tue Sep 29 16:34:07 2020
@@ -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 @@ get_dynamic_section(void)
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++) {