aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relaycell.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-02 10:05:03 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-11 10:11:54 -0400
commite80a032b61e3c793ad0d1627074b8750f7cfec48 (patch)
tree7e58b5facf2446fdd81e15562dfcebe130d89bbc /src/test/test_relaycell.c
parent53a3b39da1241ba43f63f1515f6ef5167b182cae (diff)
downloadtor-e80a032b61e3c793ad0d1627074b8750f7cfec48.tar.gz
tor-e80a032b61e3c793ad0d1627074b8750f7cfec48.zip
Add clang's -Wstring-conversion, and fix the one place it hits
Diffstat (limited to 'src/test/test_relaycell.c')
-rw-r--r--src/test/test_relaycell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_relaycell.c b/src/test/test_relaycell.c
index 1cd9ff064b..fb6748965a 100644
--- a/src/test/test_relaycell.c
+++ b/src/test/test_relaycell.c
@@ -95,7 +95,7 @@ test_relaycell_resolved(void *arg)
tt_int_op(srm_ncalls, OP_EQ, 1); \
tt_ptr_op(srm_conn, OP_EQ, entryconn); \
tt_int_op(srm_atype, OP_EQ, (atype)); \
- if (answer) { \
+ if ((answer) != NULL) { \
tt_int_op(srm_alen, OP_EQ, sizeof(answer)-1); \
tt_int_op(srm_alen, OP_LT, 512); \
tt_int_op(srm_answer_is_set, OP_EQ, 1); \