diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c index 2058ed35bb6b158fd6be3f13cfed4f83a648ec0d..c14c57011dd9acadc4355564b42164f02d4ef7c2 100644 --- a/src/interfaces/python/pgmodule.c +++ b/src/interfaces/python/pgmodule.c @@ -2375,6 +2375,9 @@ pg_inserttable(pgobject * self, PyObject * args) if (m) { + /* not strictly necessary but removes a bogus warning */ + n = 0; + /* checks sublists type and size */ for (i = 0; i < m; i++) { @@ -2399,7 +2402,7 @@ pg_inserttable(pgobject * self, PyObject * args) } } else - n=j; + n = j; /* never used before this assignment */ } if (n) {