Content-Length: 256251 | pFad | http://github.com/postgrespro/postgres/commit/e8abf97af770401934a2fc4887940b76403520f0

F5 Prevent use of uninitialized variable · postgrespro/postgres@e8abf97 · GitHub
Skip to content

Commit e8abf97

Browse files
committed
Prevent use of uninitialized variable
Per buildfarm member longfin.
1 parent 11074f2 commit e8abf97

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-1
lines changed

src/backend/storage/lmgr/lmgr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ WaitForLockersMultiple(List *locktags, LOCKMODE lockmode, bool progress)
880880
holders = lappend(holders,
881881
GetLockConflicts(locktag, lockmode,
882882
progress ? &count : NULL));
883-
total += count;
883+
if (progress)
884+
total += count;
884885
}
885886

886887
if (progress)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e8abf97af770401934a2fc4887940b76403520f0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy