summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 5e2a010d..9b432023 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -275,8 +275,10 @@ class Varargs(Type):
class Array(Type):
- def __init__(self, ctype, element_type):
- Type.__init__(self, '<carray>', ctype)
+ def __init__(self, name, ctype, element_type):
+ if name is None:
+ name = '<carray>'
+ Type.__init__(self, name, ctype)
self.element_type = element_type
self.zeroterminated = True
self.length_param_index = -1