summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2019-02-27 17:14:34 +0000
committerAndres Freund2019-02-27 17:14:34 +0000
commit5963b29e03d9b93011acb3954ccc3565d217acc3 (patch)
tree54c6ced29b23edede797766a43c7ba58d734da8b
parent538ecc17c478e87cc3155c2b9cda7a1b1812d767 (diff)
Initialize variable to silence compiler warning.
After ff11e7f4b9ae 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/[email protected]
-rw-r--r--src/backend/commands/trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index c5e588e801..7109889694 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -4490,7 +4490,7 @@ afterTriggerInvokeEvents(AfterTriggerEventList *events,
AfterTriggerEventChunk *chunk;
MemoryContext per_tuple_context;
bool local_estate = false;
- ResultRelInfo *rInfo;
+ ResultRelInfo *rInfo = NULL;
Relation rel = NULL;
TriggerDesc *trigdesc = NULL;
FmgrInfo *finfo = NULL;