git » libjio » commit 2c51596

bindings/python: Initialize flags in jfsck()

author Alberto Bertogli
2011-02-26 21:57:01 UTC
committer Alberto Bertogli
2011-02-26 21:57:01 UTC
parent b2e18b1fefc2b51baf70d5e1a5c41567214ebfe4

bindings/python: Initialize flags in jfsck()

Since flags is an optional parameter, we need to initialize it.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

bindings/python/libjio.c +1 -1

diff --git a/bindings/python/libjio.c b/bindings/python/libjio.c
index f147d65..7a8e182 100644
--- a/bindings/python/libjio.c
+++ b/bindings/python/libjio.c
@@ -900,7 +900,7 @@ It's a wrapper to jfsck().\n");
 static PyObject *jf_jfsck(PyObject *self, PyObject *args, PyObject *kw)
 {
 	int rv;
-	unsigned int flags;
+	unsigned int flags = 0;
 	char *name, *jdir = NULL;
 	struct jfsck_result res;
 	PyObject *dict;