ldpreload.h: Add missing unlikely() in DLSYM_FUNCTION().

This commit is contained in:
Simon Ruderich
2013-06-13 16:46:48 +02:00
parent 0ad5e4db04
commit 7eb1667d41

View 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); \
}