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
This commit is contained in:
Konstantin Belousov 2021-05-12 02:36:09 +03:00
parent 29c6e6e279
commit 529ab5a759

View File

@ -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)