summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c
index f03b040..4cfeeda 100644
--- a/ext/fiddle/handle.c
+++ b/ext/fiddle/handle.c
@@ -314,7 +314,7 @@ fiddle_handle_sym(void *handle, const char *name)
{
#if defined(HAVE_DLERROR)
const char *err;
-# define CHECK_DLERROR if( err = dlerror() ){ func = 0; }
+# define CHECK_DLERROR if ((err = dlerror()) != 0) { func = 0; }
#else
# define CHECK_DLERROR
#endif