diff --git a/test/append-test-log.c b/test/append-test-log.c index 0d659e4..c616591 100644 --- a/test/append-test-log.c +++ b/test/append-test-log.c @@ -136,8 +136,9 @@ static void chk_last(TestState *s, void *ptr) { LogData *ld = ptr; - chk_ptr_chg(s, "last_log", ld->state.last_log, &ld->second); - chk_str_eq(s, "last_log->text", ld->state.last_log->text, "baz"); + chk_ptr_chg(s, 0, ld->state.last_log, &ld->second); + chk_str_eq(s, "text", ld->state.last_log->text, "baz"); + chk_ptr_eq(s, "next", ld->state.last_log->next, 0); free(ld->state.last_log->text); free(ld->state.last_log); }