From 205639669981f1ab9dc355d07c60c123c4da0ca0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 6 Nov 2009 02:39:02 -0500 Subject: [PATCH] Fixed NULL pointer bug if --account=EXPR is invalid --- src/temps.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/temps.cc b/src/temps.cc index 012a573b..fd099e9a 100644 --- a/src/temps.cc +++ b/src/temps.cc @@ -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); } }