about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/nix/src/libexpr/value.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/value.hh b/third_party/nix/src/libexpr/value.hh
index b5a1a33cba..980d9affbb 100644
--- a/third_party/nix/src/libexpr/value.hh
+++ b/third_party/nix/src/libexpr/value.hh
@@ -105,7 +105,10 @@ struct Value {
     NixFloat fpoint;
   };
 
-  Value() : type(tInt), integer(0) {}
+  Value() : type(tInt), attrs(nullptr) {
+    static_assert(offsetof(Value, attrs) + sizeof(attrs) == sizeof(Value));
+  }
+
   Value(const Value& copy);
   Value(Value&& move);
   ~Value() {}