Fix building on clang

https://hydra.nixos.org/build/62945761
This commit is contained in:
Eelco Dolstra 2017-10-25 17:20:47 +02:00
parent 82327e3cc4
commit 9971d875a4
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -2400,10 +2400,10 @@ void DerivationGoal::writeStructuredAttrs()
} }
if (value.is_null()) if (value.is_null())
return "''"; return std::string("''");
if (value.is_boolean()) if (value.is_boolean())
return value.get<bool>() ? "1" : ""; return value.get<bool>() ? std::string("1") : std::string("");
return {}; return {};
}; };