about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-07-23T23·46-0700
committerkanepyork <rikingcoding@gmail.com>2020-07-24T22·18+0000
commit60394174312ae98dcd56eb8fa1c18199d512a81e (patch)
tree1f97ea5ae8aa0a0894a149e6df69cc6f037bc3f1 /third_party
parent6a0be19edd0263e561509b964c71e99e04043e81 (diff)
fix(3p/nix): fix all UninitializedObject warnings r/1459
The cpptoml occurrences are ignored in CL 1419.

Updates: #11
Change-Id: Ifb21c93b09c67e6b6a4c9e7089abffe7616569fd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1407
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/src/libexpr/nixexpr.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/nixexpr.hh b/third_party/nix/src/libexpr/nixexpr.hh
index 365235377f71..7b89fb0c927e 100644
--- a/third_party/nix/src/libexpr/nixexpr.hh
+++ b/third_party/nix/src/libexpr/nixexpr.hh
@@ -192,7 +192,7 @@ struct ExprAttrs : Expr {
     Pos pos;
     unsigned int displ;  // displacement
     AttrDef(Expr* e, const Pos& pos, bool inherited = false)
-        : inherited(inherited), e(e), pos(pos){};
+        : inherited(inherited), e(e), pos(pos), displ(0){};
     AttrDef(){};
   };