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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy