Initialize Kmod.mod_dir to None in __cinit__().
authorW. Trevor King <wking@tremily.us>
Fri, 19 Oct 2012 11:49:16 +0000 (07:49 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 19 Oct 2012 11:49:16 +0000 (07:49 -0400)
Signed-off-by: W. Trevor King <wking@tremily.us>
kmod/kmod.pyx

index 8a13f3a3b2fc033e0a04e4f104e1aaad8b7d2e7d..f2cc8d3368587dcbb835060e547b3fc4f09930db 100644 (file)
@@ -24,6 +24,7 @@ cdef class Kmod (object):
     "Wrap a struct kmod_ctx* item"
     def __cinit__(self):
         self._kmod_ctx = NULL
+        self.mod_dir = None
 
     def __dealloc__(self):
         self._cleanup()