Fix a compiler warning

Compilers these days are very picky about
their NULLs.
This commit is contained in:
Matthias Clasen 2023-06-07 07:41:30 -04:00
parent ccb7c9057a
commit 0505c8fac9

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));