mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
Revert "util: Fix helgrind complaint about one-time init"
This reverts commit f8c7a43f33.
Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7760>
This commit is contained in:
parent
8fffcbce9b
commit
410b651859
1 changed files with 1 additions and 3 deletions
|
|
@ -46,8 +46,6 @@
|
|||
|
||||
#if defined(__linux__) && defined(HAVE_PROGRAM_INVOCATION_NAME)
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
static char *path = NULL;
|
||||
|
||||
static void __freeProgramPath()
|
||||
|
|
@ -68,7 +66,7 @@ __getProgramName()
|
|||
* Strip these arguments out by using the realpath only if it was
|
||||
* a prefix of the invocation name.
|
||||
*/
|
||||
do_once {
|
||||
if (!path) {
|
||||
path = realpath("/proc/self/exe", NULL);
|
||||
atexit(__freeProgramPath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue