about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2017-10-25T15·50+0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2017-10-25T15·50+0100
commit54a2cd9ce43b29382a5799635ea9aa28c245d3a4 (patch)
treee7a47020623dcfb09408238b42101c57e5af4003
parent9f01a3f0a87679ac3ba2c71ab6d31478bcbef481 (diff)
parent9971d875a462bc393724220f468825eca9e5c38a (diff)
Merge branch 'master' of github.com:NixOS/nix into sigint-copy
-rw-r--r--src/libstore/build.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 51afbac7fc7b..9f8edc826a04 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2400,10 +2400,10 @@ void DerivationGoal::writeStructuredAttrs()
             }
 
             if (value.is_null())
-                return "''";
+                return std::string("''");
 
             if (value.is_boolean())
-                return value.get<bool>() ? "1" : "";
+                return value.get<bool>() ? std::string("1") : std::string("");
 
             return {};
         };