aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-05-06 16:01:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-05-06 16:01:43 +0200
commit5055e6ed71904e01fcaf2bd056b95876c3a9e29b (patch)
tree143fa511609fd9a3a5c4fda9c1898bc439315f72
parent29f1eb02ea4619b985864e28c4ceff70f1d2e21c (diff)
Fix uninitialized variable bug
-rw-r--r--build2/cc/compile-rule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx
index 794b64e..9c8e376 100644
--- a/build2/cc/compile-rule.cxx
+++ b/build2/cc/compile-rule.cxx
@@ -93,7 +93,7 @@ namespace build2
static pair<unit_type, module_info>
to_module_info (const string& s)
{
- unit_type ut;
+ unit_type ut (unit_type::non_modular);
module_info mi;
for (size_t b (0), e (0), n (s.size ()), m; e < n; )