Skip to content

Commit 7f9cb31

Browse files
committed
lib-settings: test-settings - Refactor initialization of params3
Satisfies older compilers
1 parent eea4368 commit 7f9cb31

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib-settings/test-settings.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -293,17 +293,17 @@ static void test_var_expand_hierarchy(void)
293293
.context = context2,
294294
};
295295

296-
struct var_expand_params params3 = {
297-
.tables_arr = (const struct var_expand_table *const[]) {
298-
tab1,
299-
tab1,
300-
NULL
301-
},
302-
.contexts = (void *const[]) {
303-
context1,
304-
context1,
305-
VAR_EXPAND_CONTEXTS_END,
306-
}
296+
struct var_expand_params params3;
297+
i_zero(&params3);
298+
params3.tables_arr = (const struct var_expand_table *const[]) {
299+
tab1,
300+
tab1,
301+
NULL
302+
};
303+
params3.contexts = (void *const[]) {
304+
context1,
305+
context1,
306+
VAR_EXPAND_CONTEXTS_END,
307307
};
308308

309309
struct settings_root *set_root = settings_root_init();

0 commit comments

Comments
 (0)