[master] ceaff5f vmodtool: fix object destructor signature

Nils Goroll nils.goroll at uplex.de
Fri Apr 27 15:00:30 UTC 2018


commit ceaff5f4673a543e1b6eecea2a05847796642eac
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Apr 27 16:58:01 2018 +0200

    vmodtool: fix object destructor signature
    
    ... when the constructor has optional arguments

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index b4de6a0..8937aef 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -719,6 +719,7 @@ class s_object(stanza):
 
         self.fini = copy.copy(self.proto)
         self.fini.name += '__fini'
+        self.fini.argstruct = False
         self.fini.args = []
 
         self.rstlbl = "obj_" + self.proto.name


More information about the varnish-commit mailing list