Content-Length: 274524 | pFad | http://github.com/postgrespro/postgres_cluster/commit/be134e9dc47ace7f1464a118b746272d41ca49af

35 Add an unnecessary assignment to remove a bogus warning. I checked the · postgrespro/postgres_cluster@be134e9 · GitHub
Skip to content

Commit be134e9

Browse files
committed
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.
1 parent 1d8dfe3 commit be134e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/interfaces/python/pgmodule.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,6 +2375,9 @@ pg_inserttable(pgobject * self, PyObject * args)
23752375

23762376
if (m)
23772377
{
2378+
/* not strictly necessary but removes a bogus warning */
2379+
n = 0;
2380+
23782381
/* checks sublists type and size */
23792382
for (i = 0; i < m; i++)
23802383
{
@@ -2399,7 +2402,7 @@ pg_inserttable(pgobject * self, PyObject * args)
23992402
}
24002403
}
24012404
else
2402-
n=j;
2405+
n = j; /* never used before this assignment */
24032406
}
24042407
if (n)
24052408
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/be134e9dc47ace7f1464a118b746272d41ca49af

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy