Skip to content

Commit 8569ef6

Browse files
committed
Silence compiler warning in Assert()
gcc 6.3 does not whine about this mistake I made in 39808e8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list
1 parent 69ff26b commit 8569ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/event_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ EventTriggerCollectAlterTableSubcmd(Node *subcmd, ObjectAddress address)
17611761
return;
17621762

17631763
Assert(IsA(subcmd, AlterTableCmd));
1764-
Assert(OidIsValid(currentEventTriggerState->currentCommand));
1764+
Assert(currentEventTriggerState->currentCommand != NULL);
17651765
Assert(OidIsValid(currentEventTriggerState->currentCommand->d.alterTable.objectId));
17661766

17671767
oldcxt = MemoryContextSwitchTo(currentEventTriggerState->cxt);

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