From 0a72910276557ee0d91aefd31f733b7fa798fdbd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 19 Oct 2012 07:49:16 -0400 Subject: [PATCH] Initialize Kmod.mod_dir to None in __cinit__(). Signed-off-by: W. Trevor King --- kmod/kmod.pyx | 1 + 1 file changed, 1 insertion(+) 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() -- 2.26.2