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:
Linas Vepstas 2004-07-04 17:18:43 +00:00
parent 2291561fbf
commit fe8ecadbdc

View File

@ -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