summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-13 17:58:42 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-05-13 17:58:42 +0200
commite10a3c5f1ad110ba0832c5c50d2eaedbefefcf02 (patch)
treecaa2c3ab4c29d59abd9de626dd175bec84ef55f6
parent42ced547443877db7da9502d7d4ca8e3f3dd8594 (diff)
downloadpsutil-e10a3c5f1ad110ba0832c5c50d2eaedbefefcf02.tar.gz
openbsd: fix compiler warning
-rw-r--r--psutil/arch/bsd/openbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/arch/bsd/openbsd.c b/psutil/arch/bsd/openbsd.c
index 3b3f4449..fe9c289b 100644
--- a/psutil/arch/bsd/openbsd.c
+++ b/psutil/arch/bsd/openbsd.c
@@ -709,7 +709,7 @@ PyObject *
psutil_disk_io_counters(PyObject *self, PyObject *args) {
int i, dk_ndrive, mib[3];
size_t len;
- struct diskstats *stats;
+ struct diskstats *stats = NULL;
PyObject *py_retdict = PyDict_New();
PyObject *py_disk_info = NULL;