git: 529ab5a75925 - main - rtld: initialize default dlerror_seen_val as true
Konstantin Belousov
kib at FreeBSD.org
Wed May 12 23:31:41 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=529ab5a75925c9c1eeea0b2712911048119d06ae
commit 529ab5a75925c9c1eeea0b2712911048119d06ae
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-05-11 23:36:09 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-05-12 23:31:29 +0000
rtld: initialize default dlerror_seen_val as true
There should be no error after startup.
PR: 255698
Reported by: Eugene M. Kim <astralblue at gmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
libexec/rtld-elf/rtld_lock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/rtld-elf/rtld_lock.c b/libexec/rtld-elf/rtld_lock.c
index 94e931c2f760..e501c03f0722 100644
--- a/libexec/rtld-elf/rtld_lock.c
+++ b/libexec/rtld-elf/rtld_lock.c
@@ -60,7 +60,7 @@ void _rtld_atfork_pre(int *) __exported;
void _rtld_atfork_post(int *) __exported;
static char def_dlerror_msg[512];
-static int def_dlerror_seen_val;
+static int def_dlerror_seen_val = 1;
static char *
def_dlerror_loc(void)
More information about the dev-commits-src-main
mailing list