From 7e3c4d85d4e2f46a4b7f118bd08ee5c2c49a6e50 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Apr 2016 12:06:28 +0200 Subject: Add missing variable assignments --- build2/variable.ixx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build2/variable.ixx b/build2/variable.ixx index 76a52c1..e01e3d6 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -304,7 +304,7 @@ namespace build2 string* p; if (v.null ()) - new (&v.data_) string (move (x)); + p = new (&v.data_) string (move (x)); else { p = &v.as (); @@ -365,7 +365,7 @@ namespace build2 path* p; if (v.null ()) - new (&v.data_) path (move (x)); + p = new (&v.data_) path (move (x)); else { p = &v.as (); @@ -426,7 +426,7 @@ namespace build2 dir_path* p; if (v.null ()) - new (&v.data_) dir_path (move (x)); + p = new (&v.data_) dir_path (move (x)); else { p = &v.as (); @@ -554,7 +554,7 @@ namespace build2 vector* p; if (v.null ()) - new (&v.data_) vector (move (x)); + p = new (&v.data_) vector (move (x)); else { p = &v.as> (); -- cgit v1.1