# HG changeset patch # User Paul Boddie # Date 1481729012 -3600 # Node ID 25e43e32ab7e2148b4d9a9efbc33e481ccb192ae # Parent 97f87e030e28d04a0f4c7493ede55fb73a3e1c16 Encode uninitialised members as None references. diff -r 97f87e030e28 -r 25e43e32ab7e generator.py --- a/generator.py Wed Dec 14 00:03:08 2016 +0100 +++ b/generator.py Wed Dec 14 16:23:32 2016 +0100 @@ -957,7 +957,8 @@ # General undetermined members. if kind in ("", ""): - return "{0, 0} /* %s */" % name + attr_path = encode_predefined_reference(self.none_value) + return "{&%s, &%s} /* %s */" % (attr_path, attr_path, name) # Set the context depending on the kind of attribute. # For methods: {&, &}