diff options
author | Armin Rigo <arigo@tunes.org> | 2015-04-25 12:06:50 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-04-25 12:06:50 +0200 |
commit | 820ae91d918229f2796c62d49d84927c1fa250a3 (patch) | |
tree | 7383ad088fce0d974a2dd877c43091023e3e9901 /cffi/model.py | |
parent | cec26c0419b1447cc1c4416c70d914a88c8de35a (diff) | |
download | cffi-820ae91d918229f2796c62d49d84927c1fa250a3.tar.gz |
oups
Diffstat (limited to 'cffi/model.py')
-rw-r--r-- | cffi/model.py | 2 |
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 |