aboutsummaryrefslogtreecommitdiff
path: root/build2/dist/operation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/dist/operation.cxx')
-rw-r--r--build2/dist/operation.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx
index cb3a6f3..9bb546c 100644
--- a/build2/dist/operation.cxx
+++ b/build2/dist/operation.cxx
@@ -156,12 +156,11 @@ namespace build2
? out_src (d, rs)
: dir_path ());
- const char* e (p.extension ());
targets.insert<buildfile> (
move (d),
move (out),
p.leaf ().base ().string (),
- &extension_pool.find (e == nullptr ? "" : e), // Specified.
+ &extension_pool.find (p.extension ()), // Specified.
trace);
}
};