mirror of
https://github.com/labwc/labwc.git
synced 2026-03-18 05:33:53 -04:00
rcxml: declare variable at initialization
This commit is contained in:
parent
a1d8ebc0de
commit
11959c5c5e
1 changed files with 1 additions and 2 deletions
|
|
@ -1659,9 +1659,8 @@ load_default_window_switcher_fields(void)
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cycle_osd_field *field;
|
|
||||||
for (size_t i = 0; i < ARRAY_SIZE(fields); i++) {
|
for (size_t i = 0; i < ARRAY_SIZE(fields); i++) {
|
||||||
field = znew(*field);
|
struct cycle_osd_field *field = znew(*field);
|
||||||
field->content = fields[i].content;
|
field->content = fields[i].content;
|
||||||
field->width = fields[i].width;
|
field->width = fields[i].width;
|
||||||
wl_list_append(&rc.window_switcher.fields, &field->link);
|
wl_list_append(&rc.window_switcher.fields, &field->link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue