From a2cc9881dfc08ebde84ce0b9a421b9f2d7e5d708 Mon Sep 17 00:00:00 2001 From: Stefan Koch Date: Thu, 15 Jan 2026 08:42:20 -0500 Subject: [PATCH] Explicitly set the is_dirty attribute in qof_collection_new It is likely that the memory was zeroed anyway, but the explicitness makes it easier to read. --- libgnucash/engine/qofid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libgnucash/engine/qofid.cpp b/libgnucash/engine/qofid.cpp index 2d3bf402e6..b1bf7e8e50 100644 --- a/libgnucash/engine/qofid.cpp +++ b/libgnucash/engine/qofid.cpp @@ -50,6 +50,7 @@ qof_collection_new (QofIdType type) QofCollection *col; col = g_new0(QofCollection, 1); col->e_type = static_cast(CACHE_INSERT (type)); + col->is_dirty = FALSE; col->hash_of_entities = guid_hash_table_new(); col->data = NULL; return col;