Content-Length: 259988 | pFad | http://github.com/postgrespro/postgres/commit/5963b29e03d9b93011acb3954ccc3565d217acc3

76 Initialize variable to silence compiler warning. · postgrespro/postgres@5963b29 · GitHub
Skip to content

Commit 5963b29

Browse files
committed
Initialize variable to silence compiler warning.
After ff11e7f Tom's compiler warns about accessing a potentially uninitialized rInfo. That's not actually possible, but it's understandable the compiler would get this wrong. NULL initialize too. Reported-By: Tom Lane Discussion: https://postgr.es/m/11199.1551285318@sss.pgh.pa.us
1 parent 538ecc1 commit 5963b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4490,7 +4490,7 @@ afterTriggerInvokeEvents(AfterTriggerEventList *events,
44904490
AfterTriggerEventChunk *chunk;
44914491
MemoryContext per_tuple_context;
44924492
bool local_estate = false;
4493-
ResultRelInfo *rInfo;
4493+
ResultRelInfo *rInfo = NULL;
44944494
Relation rel = NULL;
44954495
TriggerDesc *trigdesc = NULL;
44964496
FmgrInfo *finfo = NULL;

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/5963b29e03d9b93011acb3954ccc3565d217acc3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy