Fix warning about always-true condition.

This commit is contained in:
John Ralls
2015-09-17 13:02:27 -07:00
parent 42859b91bb
commit 0b7e4773f7

View File

@@ -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;
}