mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix null-pointer deref that results in core dump.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10157 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2291561fbf
commit
fe8ecadbdc
@ -180,10 +180,10 @@ gnc_kvp_bag_get_first (KvpFrame *root, const char * path)
|
||||
if (KVP_TYPE_GLIST != valtype) return NULL;
|
||||
|
||||
node = kvp_value_get_glist(arr);
|
||||
{
|
||||
KvpValue *va = node->data;
|
||||
return kvp_value_get_frame(va);
|
||||
}
|
||||
if (NULL == node) return NULL;
|
||||
|
||||
KvpValue *va = node->data;
|
||||
return kvp_value_get_frame(va);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user