diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-05-11 23:36:09 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-05-12 23:31:29 +0000 |
commit | 529ab5a75925c9c1eeea0b2712911048119d06ae (patch) | |
tree | 471a768a9e6eb0d152a96e52ef438e1dcaf761e1 | |
parent | 29c6e6e279b3bbab78510ff03922e7fb85f93ee2 (diff) | |
download | src-529ab5a75925c9c1eeea0b2712911048119d06ae.tar.gz src-529ab5a75925c9c1eeea0b2712911048119d06ae.zip |
rtld: initialize default dlerror_seen_val as true
There should be no error after startup.
PR: 255698
Reported by: Eugene M. Kim <astralblue@gmail.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
-rw-r--r-- | libexec/rtld-elf/rtld_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |