aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24 03:08:34 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24 03:08:34 +0200
commit69befd33a9e3600c125803694fbac96053f943b0 (patch)
tree24e478bbc08fade03668b7094f6b0349319c2bc8 /src/libexpr/eval.cc
parenta5684e09d34deb5c380c736ce520c030eb14bfc6 (diff)
Remove unnecessary call to forceStringNoCtx
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index ae2943157..29b3e3c82 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -1083,7 +1083,7 @@ bool EvalState::isDerivation(Value & v)
if (i == v.attrs->end()) return false;
forceValue(*i->value);
if (i->value->type != tString) return false;
- return forceStringNoCtx(*i->value) == "derivation";
+ return strcmp(i->value->string.s, "derivation") == 0;
}