]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/ldpreload.h
ldpreload.h: Add missing unlikely() in DLSYM_FUNCTION().
[coloredstderr/coloredstderr.git] / src / ldpreload.h
index cc2dcee3c6c33d630ee085d8d8e52e7ab1a4b7a4..792679bb91d4fbf26ec17c18b239aa2e91f08979 100644 (file)
@@ -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); \
     }