From 406a942820d260382c54e69c6cdf911af5836547 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Wed, 23 Feb 2005 23:27:54 +0000 Subject: [PATCH] Minor code cleanup: remove a variable that was assigned to but never subsequently referenced. Found by: Coverity Fixed by: Sean Chittenden --- src/backend/catalog/pg_largeobject.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/catalog/pg_largeobject.c b/src/backend/catalog/pg_largeobject.c index 34837441cb..bce3a47b93 100644 --- a/src/backend/catalog/pg_largeobject.c +++ b/src/backend/catalog/pg_largeobject.c @@ -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); -- 2.40.0