From: W. Trevor King Date: Fri, 19 Oct 2012 11:49:16 +0000 (-0400) Subject: Initialize Kmod.mod_dir to None in __cinit__(). X-Git-Tag: v0.9~1^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a72910276557ee0d91aefd31f733b7fa798fdbd;p=python-kmod.git Initialize Kmod.mod_dir to None in __cinit__(). Signed-off-by: W. Trevor King --- diff --git a/kmod/kmod.pyx b/kmod/kmod.pyx index 8a13f3a..f2cc8d3 100644 --- a/kmod/kmod.pyx +++ b/kmod/kmod.pyx @@ -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()