mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Debugging: Fix a LEAVE() call to prevent crashing if commodity is NULL.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17435 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -823,7 +823,8 @@ gnc_tree_view_commodity_get_selected_commodity (GncTreeViewCommodity *view)
|
||||
model = gtk_tree_model_filter_get_model(GTK_TREE_MODEL_FILTER(f_model));
|
||||
commodity = gnc_tree_model_commodity_get_commodity (GNC_TREE_MODEL_COMMODITY(model),
|
||||
&iter);
|
||||
LEAVE("commodity %p (%s)", commodity, gnc_commodity_get_mnemonic (commodity));
|
||||
LEAVE("commodity %p (%s)", commodity,
|
||||
commodity? gnc_commodity_get_mnemonic(commodity) : "");
|
||||
return commodity;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user