aboutsummaryrefslogtreecommitdiff
path: root/build2/version
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-02 14:28:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-02 14:28:10 +0200
commit8d743ac19a1b0c15deccfb14525eaeef56b4135b (patch)
treea6ef7627068939f3de8f09c14d06ae67c313a3ab /build2/version
parentaed0c46abaebd54e2df3777aaabf461c877012f7 (diff)
Fix few undefined behavior (ubsan) bugs
Diffstat (limited to 'build2/version')
-rw-r--r--build2/version/rule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/version/rule.cxx b/build2/version/rule.cxx
index 962a75e..9e127ca 100644
--- a/build2/version/rule.cxx
+++ b/build2/version/rule.cxx
@@ -335,7 +335,7 @@ namespace build2
v.type == nullptr
? move (v)
: functions.call (
- t.base_scope (), "string", vector_view<value> (&v, 1), l));
+ &t.base_scope (), "string", vector_view<value> (&v, 1), l));
}
catch (const invalid_argument& e)
{