Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eee01d6

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 634b4b7 commit eee01d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/event_trigger.c

+1-1
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)