X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fldpreload.h;h=792679bb91d4fbf26ec17c18b239aa2e91f08979;hp=cc2dcee3c6c33d630ee085d8d8e52e7ab1a4b7a4;hb=7eb1667d410a7b3836542460f3b069b0866d7dab;hpb=0ad5e4db04a913dc8c91167aa138f706fffd311c 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); \ }