]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
python: 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)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 25 Mar 2014 03:34:15 +0000 (00:34 -0300)
libkmod/python/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()