Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbe134e9

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 itis assigned to.
1 parent1d8dfe3 commitbe134e9

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)

[8]ページ先頭

©2009-2025 Movatter.jp