diff options
author | Andres Freund | 2019-02-27 17:14:34 +0000 |
---|---|---|
committer | Andres Freund | 2019-02-27 17:14:34 +0000 |
commit | 5963b29e03d9b93011acb3954ccc3565d217acc3 (patch) | |
tree | 54c6ced29b23edede797766a43c7ba58d734da8b | |
parent | 538ecc17c478e87cc3155c2b9cda7a1b1812d767 (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.c | 2 |
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; |