mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-09 16:38:32 +01:00
ldpreload.h: Add missing unlikely() in DLSYM_FUNCTION().
This commit is contained in:
@@ -53,7 +53,7 @@ static void *dlsym_function(char const *name) {
|
||||
}
|
||||
|
||||
#define DLSYM_FUNCTION(pointer, name) \
|
||||
if (!(pointer)) { \
|
||||
if (unlikely(!(pointer))) { \
|
||||
*(void **) (&(pointer)) = dlsym_function(name); \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user