OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d8dfe3
)
Add an unnecessary assignment to remove a bogus warning. I checked the
author
D'Arcy J.M. Cain
<darcy@druid.net>
Tue, 10 Dec 2002 11:43:44 +0000
(11:43 +0000)
committer
D'Arcy J.M. Cain
<darcy@druid.net>
Tue, 10 Dec 2002 11:43:44 +0000
(11:43 +0000)
logic carefully and I am sure that the test against n happens after it
is assigned to.
src/interfaces/python/pgmodule.c
patch
|
blob
|
history
diff --git
a/src/interfaces/python/pgmodule.c
b/src/interfaces/python/pgmodule.c
index
2058ed3
..
c14c570
100644
(file)
--- 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)
{