aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlastair Donaldson <afdx@google.com>2019-02-14 14:51:24 +0000
committerdan sinclair <dj2@everburning.com>2019-02-14 09:51:24 -0500
commit5e254a65daac519cc7090cccd2f040f4c73667cc (patch)
treef2fa2e76094c1c355f4e5e11a3bb00b5727e6007 /src
parent50dbc8a0bceca63731f0ccb8c62c69751e67a5f8 (diff)
downloadamber-5e254a65daac519cc7090cccd2f040f4c73667cc.tar.gz
Initialize the impl_ field of RecipeImpl to null, to avoid problems deleting it if it has not been initialized. (#295)
Diffstat (limited to 'src')
-rw-r--r--src/recipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recipe.cc b/src/recipe.cc
index 8582525..973ea33 100644
--- a/src/recipe.cc
+++ b/src/recipe.cc
@@ -19,7 +19,7 @@ RecipeImpl::RecipeImpl() = default;
RecipeImpl::~RecipeImpl() = default;
-Recipe::Recipe() = default;
+Recipe::Recipe() : impl_(nullptr) {}
Recipe::~Recipe() {
delete impl_;