An empty GValue is interpreted as NULL reason, which is still a valid cache

Ignoring this would make caching almost useless as there are typically
only very few read-only transactions.
This commit is contained in:
Geert Janssens 2018-09-10 10:24:49 +02:00
parent a19dcc7bd4
commit 1117027f72

View File

@ -2472,8 +2472,8 @@ xaccTransGetReadOnly (Transaction *trans)
{
trans->readonly_reason = g_value_dup_string (&v);
g_value_unset (&v);
trans->reason_cache_valid = TRUE;
}
trans->reason_cache_valid = TRUE;
}
return trans->readonly_reason;
}