From 69befd33a9e3600c125803694fbac96053f943b0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Oct 2013 03:08:34 +0200 Subject: [PATCH] Remove unnecessary call to forceStringNoCtx --- src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }