mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix a %s-NULL-printf if default currency is neither locale nor chosen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16162 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
fb7148b4ab
commit
caac02f303
@ -869,7 +869,7 @@ gnc_default_currency (void)
|
||||
mnemonic = gnc_gconf_get_string(GCONF_GENERAL, KEY_CURRENCY_OTHER, NULL);
|
||||
currency = gnc_commodity_table_lookup(gnc_get_current_commodities(),
|
||||
GNC_COMMODITY_NS_CURRENCY, mnemonic);
|
||||
DEBUG("mnemonic %s, result %p", mnemonic, currency);
|
||||
DEBUG("mnemonic %s, result %p", mnemonic ? mnemonic : "(null)", currency);
|
||||
g_free(mnemonic);
|
||||
}
|
||||
g_free(choice);
|
||||
|
Loading…
Reference in New Issue
Block a user