From 7eb1667d410a7b3836542460f3b069b0866d7dab Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 13 Jun 2013 16:46:48 +0200 Subject: [PATCH] ldpreload.h: Add missing unlikely() in DLSYM_FUNCTION(). --- src/ldpreload.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ } -- 2.45.2