diff options
-rw-r--r-- | psutil/_psutil_osx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psutil_osx.c b/psutil/_psutil_osx.c index 6e5bd7b6..d2ca94b5 100644 --- a/psutil/_psutil_osx.c +++ b/psutil/_psutil_osx.c @@ -1900,9 +1900,9 @@ static PyMethodDef mod_methods[] = { INITERR; } - if (module == NULL) + if (mod == NULL) INITERR; #if PY_MAJOR_VERSION >= 3 - return module; + return mod; #endif } |