Skip to content

Commit

Permalink
Use '\0' for NULL in c strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
peplin committed Jan 7, 2014
1 parent 08ac01d commit 43fd609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 43fd609

Please sign in to comment.