提交 406a9428 编写于 作者: N Neil Conway

Minor code cleanup: remove a variable that was assigned to but never

subsequently referenced.

Found by: Coverity
Fixed by: Sean Chittenden
上级 3350b374
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/pg_largeobject.c,v 1.22 2004/12/31 21:59:38 pgsql Exp $
* $PostgreSQL: pgsql/src/backend/catalog/pg_largeobject.c,v 1.23 2005/02/23 23:27:54 neilc Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -114,7 +114,6 @@ LargeObjectExists(Oid loid)
Relation pg_largeobject;
ScanKeyData skey[1];
SysScanDesc sd;
HeapTuple tuple;
/*
* See if we can find any tuples belonging to the specified LO
......@@ -129,7 +128,7 @@ LargeObjectExists(Oid loid)
sd = systable_beginscan(pg_largeobject, LargeObjectLOidPNIndex, true,
SnapshotNow, 1, skey);
if ((tuple = systable_getnext(sd)) != NULL)
if (systable_getnext(sd) != NULL)
retval = true;
systable_endscan(sd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册