mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 20:30:45 -06:00
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.
This commit is contained in:
1 parent
9079d87307
commit
a2cc9881df
1 file changed
+1
@@ -50,6 +50,7 @@ qof_collection_new (QofIdType type)
|
||||
QofCollection *col;
|
||||
col = g_new0(QofCollection, 1);
|
||||
col->e_type = static_cast<QofIdType>(CACHE_INSERT (type));
|
||||
col->is_dirty = FALSE;
|
||||
col->hash_of_entities = guid_hash_table_new();
|
||||
col->data = NULL;
|
||||
return col;
|
||||
|
||||
Reference in new issue
Block a user