Code Review
/
apps
/
agl-service-can-low-level.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
08ac01d
)
Use '\0' for NULL in c strings.
author
Christopher Peplin
<chris.peplin@rhubarbtech.com>
Tue, 7 Jan 2014 05:16:57 +0000
(
00:16
-0500)
committer
Christopher Peplin
<chris.peplin@rhubarbtech.com>
Tue, 7 Jan 2014 05:16:57 +0000
(
00:16
-0500)
tests/test_send.c
patch
|
blob
|
history
diff --git
a/tests/test_send.c
b/tests/test_send.c
index
fecb259
..
3a18ff3
100644
(file)
--- a/
tests/test_send.c
+++ b/
tests/test_send.c
@@
-34,7
+34,7
@@
START_TEST (test_send_empty_payload)
fail_unless(handle.completed);
ck_assert_int_eq(last_message_sent_arb_id, arbitration_id);
fail_unless(last_message_sent_status);
- ck_assert_int_eq(last_message_sent_payload[0],
NULL
);
+ ck_assert_int_eq(last_message_sent_payload[0],
'\0'
);
ck_assert_int_eq(last_message_sent_payload_size, 0);
ck_assert_int_eq(last_can_frame_sent_arb_id, arbitration_id);