the lock, when it is correctly initialized after the lock
ok otto millert
-/* $OpenBSD: atexit.c,v 1.27 2017/12/16 20:06:56 guenther Exp $ */
+/* $OpenBSD: atexit.c,v 1.28 2022/10/22 15:21:25 deraadt Exp $ */
/*
* Copyright (c) 2002 Daniel Hartmeier
* All rights reserved.
int
__cxa_atexit(void (*func)(void *), void *arg, void *dso)
{
- struct atexit *p = __atexit;
+ struct atexit *p;
struct atexit_fn *fnp;
int pgsize = getpagesize();
int ret = -1;