Commit be134e9d authored by D'Arcy J.M. Cain's avatar D'Arcy J.M. Cain

Add an unnecessary assignment to remove a bogus warning. I checked the

logic carefully and I am sure that the test against n happens after it
is assigned to.
parent 1d8dfe3a
...@@ -2375,6 +2375,9 @@ pg_inserttable(pgobject * self, PyObject * args) ...@@ -2375,6 +2375,9 @@ pg_inserttable(pgobject * self, PyObject * args)
if (m) if (m)
{ {
/* not strictly necessary but removes a bogus warning */
n = 0;
/* checks sublists type and size */ /* checks sublists type and size */
for (i = 0; i < m; i++) for (i = 0; i < m; i++)
{ {
...@@ -2399,7 +2402,7 @@ pg_inserttable(pgobject * self, PyObject * args) ...@@ -2399,7 +2402,7 @@ pg_inserttable(pgobject * self, PyObject * args)
} }
} }
else else
n=j; n = j; /* never used before this assignment */
} }
if (n) if (n)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment