summaryrefslogtreecommitdiff
path: root/cffi/model.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-04-25 12:06:50 +0200
committerArmin Rigo <arigo@tunes.org>2015-04-25 12:06:50 +0200
commit820ae91d918229f2796c62d49d84927c1fa250a3 (patch)
tree7383ad088fce0d974a2dd877c43091023e3e9901 /cffi/model.py
parentcec26c0419b1447cc1c4416c70d914a88c8de35a (diff)
downloadcffi-820ae91d918229f2796c62d49d84927c1fa250a3.tar.gz
oups
Diffstat (limited to 'cffi/model.py')
-rw-r--r--cffi/model.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cffi/model.py b/cffi/model.py
index be73965..7da9d85 100644
--- a/cffi/model.py
+++ b/cffi/model.py
@@ -272,6 +272,8 @@ class StructOrUnion(StructOrUnionOrEnum):
self.build_c_name_with_marker()
def has_anonymous_struct_fields(self):
+ if self.fldtypes is None:
+ return False
for name, type in zip(self.fldnames, self.fldtypes):
if name == '' and isinstance(type, StructOrUnion):
return True