summaryrefslogtreecommitdiff
path: root/tests/unit/core/test-arraylist.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-04-26 22:28:03 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-04-26 22:28:03 +0200
commit5b78cb2a7b5d9fc9aeeb1045d3bc43d98b5b9133 (patch)
tree00c82bbd66e0b0fb4356d4192877235956791c44 /tests/unit/core/test-arraylist.cpp
parenta21a31e3ca2645987016d4bdff360876c6d20e7e (diff)
downloadweechat-5b78cb2a7b5d9fc9aeeb1045d3bc43d98b5b9133.zip
tests: fix compilation warning on FreeBSD
Diffstat (limited to 'tests/unit/core/test-arraylist.cpp')
-rw-r--r--tests/unit/core/test-arraylist.cpp2
1 files changed, 1 insertions, 1 deletions
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); \
} \