mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Provide a default match to return NULL
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6928 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0cd7253b8a
commit
26623bfa24
@ -97,6 +97,7 @@ gnc_commodity * gncOwnerGetCommodity (GncOwner *owner)
|
|||||||
switch (owner->type) {
|
switch (owner->type) {
|
||||||
case GNC_OWNER_NONE:
|
case GNC_OWNER_NONE:
|
||||||
case GNC_OWNER_UNDEFINED:
|
case GNC_OWNER_UNDEFINED:
|
||||||
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
case GNC_OWNER_CUSTOMER:
|
case GNC_OWNER_CUSTOMER:
|
||||||
return gncCustomerGetCommodity (owner->owner.customer);
|
return gncCustomerGetCommodity (owner->owner.customer);
|
||||||
|
Loading…
Reference in New Issue
Block a user