The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=529ab5a75925c9c1eeea0b2712911048119d06ae
commit 529ab5a75925c9c1eeea0b2712911048119d06ae Author: Konstantin Belousov <k...@freebsd.org> AuthorDate: 2021-05-11 23:36:09 +0000 Commit: Konstantin Belousov <k...@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 <astralb...@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) _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"