Skip to content

Commit

Permalink
ATOMIC_VAR_INIT
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <brawner@gmail.com>
  • Loading branch information
brawner committed Aug 12, 2020
1 parent 36050ca commit 2e99f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/fault_injection.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "rcutils/stdatomic_helper.h"

static atomic_int_least64_t g_rcutils_fault_injection_count = -1;
static atomic_int_least64_t g_rcutils_fault_injection_count = ATOMIC_VAR_INIT(-1);

bool rcutils_fault_injection_is_test_complete()
{
Expand Down

0 comments on commit 2e99f4c

Please sign in to comment.