about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build.cc')
-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 {};
         };