aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-30 15:26:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-11-30 15:26:46 +0200
commit11f2e201272239b22a5696eb0537d4357a882398 (patch)
treed2e17d3ad560c7877ff4aa53199d87e20f7155f5
parente2baea15dc24be12342b373627ca4f0534aeeb50 (diff)
Fix bug in module mapper
-rw-r--r--libbuild2/cc/compile-rule.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index a3e68ae..42427d9 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -1893,7 +1893,6 @@ namespace build2
{
// We can reasonably assume a command will never be quoted.
//
- size_t n (strlen (c));
return (r.compare (b, n, c) == 0 &&
(r[n] == ' ' || r[n] == '\t' || r[n] == '\0'));
};