diff options
Diffstat (limited to 'build2/cc/compile.cxx')
-rw-r--r-- | build2/cc/compile.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index 74a9422..f182408 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -922,8 +922,7 @@ namespace build2 // dir_path d (f.directory ()); string n (f.leaf ().base ().string ()); - const char* es (f.extension ()); - const string* e (&extension_pool.find (es != nullptr ? es : "")); + const string* e (&extension_pool.find (f.extension ())); // Determine the target type. // |