diff --git a/src/business/business-core/gncOwner.c b/src/business/business-core/gncOwner.c index 0deb5cf6dd..3642220e62 100644 --- a/src/business/business-core/gncOwner.c +++ b/src/business/business-core/gncOwner.c @@ -97,6 +97,7 @@ gnc_commodity * gncOwnerGetCommodity (GncOwner *owner) switch (owner->type) { case GNC_OWNER_NONE: case GNC_OWNER_UNDEFINED: + default: return NULL; case GNC_OWNER_CUSTOMER: return gncCustomerGetCommodity (owner->owner.customer);