about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24T01·08+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24T01·08+0200
commit69befd33a9e3600c125803694fbac96053f943b0 (patch)
tree24e478bbc08fade03668b7094f6b0349319c2bc8 /src/libexpr
parenta5684e09d34deb5c380c736ce520c030eb14bfc6 (diff)
Remove unnecessary call to forceStringNoCtx
Diffstat (limited to 'src/libexpr')
-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 ae29431578a7..29b3e3c828d9 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;
 }