diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-05 12:13:45 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-05 12:13:45 +0200 |
commit | d161994f46af7c77e428f11fea84eb34fc097449 (patch) | |
tree | 5c709d17e9186fe93e336f6c4e95c45ac4ccffd2 /python_modules/marshal.py | |
parent | d7164a0669b0f8c6531b1728f4fbda32647942ba (diff) | |
download | spice-d161994f46af7c77e428f11fea84eb34fc097449.tar.gz spice-d161994f46af7c77e428f11fea84eb34fc097449.tar.xz spice-d161994f46af7c77e428f11fea84eb34fc097449.zip |
marshaller: Make @nonnull a propagated attribute
This cleans up some stuff
Diffstat (limited to 'python_modules/marshal.py')
-rw-r--r-- | python_modules/marshal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py index f151d948..df0c3b33 100644 --- a/python_modules/marshal.py +++ b/python_modules/marshal.py @@ -235,7 +235,7 @@ def write_pointer_marshaller(writer, member, src): submarshaller = "spice_marshaller_get_ptr_submarshaller(m, %d)" % (1 if member.get_fixed_nw_size() == 8 else 0) if member.has_attr("marshall"): writer.assign("m2", submarshaller) - if member.has_attr("nonnull"): + if t.has_attr("nonnull"): writer.statement("%s(m2, %s)" % (ptr_func, src.get_ref(member.name))) else: with writer.if_block("%s != NULL" % src.get_ref(member.name)) as block: |