1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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

subsequently referenced.

Found by: Coverity
Fixed by: Sean Chittenden
This commit is contained in:
Neil Conway
2005-02-23 23:27:54 +00:00
parent 3350b3740e
commit 406a942820

View File

@ -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)
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)
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);