Merge branch 'matthiasc/for-main' into 'main'

Fix a compiler warning

See merge request GNOME/gtk!6070
This commit is contained in:
Matthias Clasen 2023-06-07 15:11:29 +00:00
commit 28fb91e85e
2 changed files with 1 additions and 2 deletions

View File

@ -405,7 +405,6 @@ asan-build:
artifacts:
paths:
- _build/meson-logs
allow_failure: true
reference:
image: $FEDORA_IMAGE

View File

@ -1293,7 +1293,7 @@ gtk_list_item_manager_ensure_items (GtkListItemManager *self,
start,
GTK_LIST_TILE_UNMATCHED_FOOTER,
GTK_LIST_TILE_HEADER);
g_assert (header->widget == NULL);
g_assert (header != NULL && header->widget == NULL);
header->widget = GTK_WIDGET (gtk_list_item_change_get_header (change));
if (header->widget == NULL)
header->widget = GTK_WIDGET (self->create_header_widget (self->widget));