aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgmodule.c
diff options
context:
space:
mode:
authorD'Arcy J.M. Cain <darcy@druid.net>2002-12-10 11:43:44 +0000
committerD'Arcy J.M. Cain <darcy@druid.net>2002-12-10 11:43:44 +0000
commitbe134e9dc47ace7f1464a118b746272d41ca49af (patch)
tree5654b0d6008c6113e0e6455eab4db727b8de424c /src/interfaces/python/pgmodule.c
parent1d8dfe3ac478a70708021785e3357ea12e620f46 (diff)
downloadpostgresql-be134e9dc47ace7f1464a118b746272d41ca49af.tar.gz
postgresql-be134e9dc47ace7f1464a118b746272d41ca49af.zip
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.
Diffstat (limited to 'src/interfaces/python/pgmodule.c')
-rw-r--r--src/interfaces/python/pgmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c
index 2058ed35bb6..c14c57011dd 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)
{