]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/ldpreload.h
Update copyright year.
[coloredstderr/coloredstderr.git] / src / ldpreload.h
index cc2dcee3c6c33d630ee085d8d8e52e7ab1a4b7a4..c3942a5b4e10d4f2fcfca16bb7c3edb2cde3d044 100644 (file)
@@ -2,7 +2,7 @@
  * Helper header for LD_PRELOAD related headers macros. Must be loaded _first_
  * (for RTLD_NEXT)!
  *
- * Copyright (C) 2012-2013  Simon Ruderich
+ * Copyright (C) 2012-2014  Simon Ruderich
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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); \
     }