diff options
author | D'Arcy J.M. Cain | 2002-12-10 11:43:44 +0000 |
---|---|---|
committer | D'Arcy J.M. Cain | 2002-12-10 11:43:44 +0000 |
commit | af54a59b4237091aa93b808c55a659d4e935e331 (patch) | |
tree | af041b5fcacf92205c96f0b8f2608537b031db43 | |
parent | 51ceebac4a6780e53d6d443fae3e42bf04823519 (diff) |
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.
-rw-r--r-- | src/interfaces/python/pgmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c index 2058ed35bb..c14c57011d 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) { |