diff --git a/src/ldpreload.h b/src/ldpreload.h index cc2dcee..792679b 100644 --- a/src/ldpreload.h +++ b/src/ldpreload.h @@ -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); \ }