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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy