aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2019-02-27 09:14:34 -0800
committerAndres Freund <andres@anarazel.de>2019-02-27 09:14:34 -0800
commit5963b29e03d9b93011acb3954ccc3565d217acc3 (patch)
tree54c6ced29b23edede797766a43c7ba58d734da8b /src
parent538ecc17c478e87cc3155c2b9cda7a1b1812d767 (diff)
downloadpostgresql-5963b29e03d9b93011acb3954ccc3565d217acc3.tar.gz
postgresql-5963b29e03d9b93011acb3954ccc3565d217acc3.zip
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/11199.1551285318@sss.pgh.pa.us
Diffstat (limited to 'src')
-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 c5e588e8011..71098896947 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;