From: Timo Sirainen Date: Mon, 23 Aug 2021 14:15:47 +0000 (+0300) Subject: lib: test-event-filter - Fix parent/child events to actually be parent/child X-Git-Tag: 2.3.18~379 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e670cb1468d3e77368d0b36958e55bceb1545f90;p=thirdparty%2Fdovecot%2Fcore.git lib: test-event-filter - Fix parent/child events to actually be parent/child --- diff --git a/src/lib/test-event-filter.c b/src/lib/test-event-filter.c index ed914c3019..d308348e6c 100644 --- a/src/lib/test-event-filter.c +++ b/src/lib/test-event-filter.c @@ -19,7 +19,7 @@ static void test_event_filter_override_parent_fields(void) event_add_int(parent, "int1", 0); event_add_int(parent, "int2", 5); - struct event *child = event_create(NULL); + struct event *child = event_create(parent); event_add_str(child, "str", "child_str"); event_add_int(child, "int1", 6); event_add_int(child, "int2", 0); @@ -56,7 +56,7 @@ static void test_event_filter_clear_parent_fields(void) event_add_str(parent, "str", "parent_str"); event_add_int(parent, "int", 0); - struct event *child = event_create(NULL); + struct event *child = event_create(parent); event_field_clear(child, "str"); event_field_clear(child, "int");