Fixed NULL pointer bug if --account=EXPR is invalid

This commit is contained in:
John Wiegley 2009-11-06 02:39:02 -05:00
parent a05d39b722
commit 2056396699

View file

@ -45,7 +45,7 @@ temporaries_t::~temporaries_t()
if (! post.xact->has_flags(ITEM_TEMP))
post.xact->remove_post(&post);
if (! post.account->has_flags(ACCOUNT_TEMP))
if (post.account && ! post.account->has_flags(ACCOUNT_TEMP))
post.account->remove_post(&post);
}
}