mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix warning about always-true condition.
This commit is contained in:
@@ -1381,7 +1381,7 @@ set_tran_random_string(Transaction* trn,
|
||||
void(*func)(Transaction *act, const gchar*str))
|
||||
{
|
||||
gchar *tmp_str = get_random_string();
|
||||
if (!trn || !(&trn->inst))
|
||||
if (!trn)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user