diff options
Diffstat (limited to 'test/src/test-c-inline.c')
-rw-r--r-- | test/src/test-c-inline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/src/test-c-inline.c b/test/src/test-c-inline.c index c12ac73..a4b237c 100644 --- a/test/src/test-c-inline.c +++ b/test/src/test-c-inline.c @@ -28,10 +28,11 @@ void enteredFoo() { int main(int argc, char** argv) { uscxml_ctx ctx; + int err = USCXML_ERR_OK; + memset(&ctx, 0, sizeof(uscxml_ctx)); ctx.machine = &USCXML_MACHINE_TEST_INLINE; - int err = USCXML_ERR_OK; while(err != USCXML_ERR_DONE) { err = uscxml_step(&ctx); } |