Commit 406a9428 authored by Neil Conway's avatar Neil Conway

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

subsequently referenced.

Found by: Coverity
Fixed by: Sean Chittenden
parent 3350b374
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -114,7 +114,6 @@ LargeObjectExists(Oid loid)
Relation pg_largeobject; Relation pg_largeobject;
ScanKeyData skey[1]; ScanKeyData skey[1];
SysScanDesc sd; SysScanDesc sd;
HeapTuple tuple;
/* /*
* See if we can find any tuples belonging to the specified LO * See if we can find any tuples belonging to the specified LO
...@@ -129,7 +128,7 @@ LargeObjectExists(Oid loid) ...@@ -129,7 +128,7 @@ LargeObjectExists(Oid loid)
sd = systable_beginscan(pg_largeobject, LargeObjectLOidPNIndex, true, sd = systable_beginscan(pg_largeobject, LargeObjectLOidPNIndex, true,
SnapshotNow, 1, skey); SnapshotNow, 1, skey);
if ((tuple = systable_getnext(sd)) != NULL) if (systable_getnext(sd) != NULL)
retval = true; retval = true;
systable_endscan(sd); systable_endscan(sd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment