git: db4a2731e9ec - stable/13 - rtld: initialize default dlerror_seen_val as true

Konstantin Belousov kib at FreeBSD.org
Wed May 19 03:14:01 UTC 2021


The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=db4a2731e9ec9723038dc3a63d963336cda8aecd

commit db4a2731e9ec9723038dc3a63d963336cda8aecd
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-19 03:13:14 +0000

    rtld: initialize default dlerror_seen_val as true
    
    PR:     255698
    
    (cherry picked from commit 529ab5a75925c9c1eeea0b2712911048119d06ae)
---
 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-all mailing list