From 8d743ac19a1b0c15deccfb14525eaeef56b4135b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 Jan 2018 14:28:10 +0200 Subject: Fix few undefined behavior (ubsan) bugs --- build2/version/rule.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/version') 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 (&v, 1), l)); + &t.base_scope (), "string", vector_view (&v, 1), l)); } catch (const invalid_argument& e) { -- cgit v1.1