From 5b78cb2a7b5d9fc9aeeb1045d3bc43d98b5b9133 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= <flashcode@flashtux.org>
Date: Wed, 26 Apr 2017 22:28:03 +0200
Subject: [PATCH] tests: fix compilation warning on FreeBSD

---
 tests/unit/core/test-arraylist.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit/core/test-arraylist.cpp b/tests/unit/core/test-arraylist.cpp
index a0350d611..ad260d3b9 100644
--- a/tests/unit/core/test-arraylist.cpp
+++ b/tests/unit/core/test-arraylist.cpp
@@ -36,7 +36,7 @@ extern "C"
                               __result_index_insert, __value)           \
     pointer = arraylist_search (arraylist, (void *)(__value),           \
                                 &index, &index_insert);                 \
-    if (__result_ptr && pointer)                                        \
+    if (__result_ptr != NULL && pointer)                                \
     {                                                                   \
         STRCMP_EQUAL(__result_ptr, (const char *)pointer);              \
     }                                                                   \