diff --git a/src/object/trigger_manager.c b/src/object/trigger_manager.c index 3a4d06fac3..524477b557 100644 --- a/src/object/trigger_manager.c +++ b/src/object/trigger_manager.c @@ -5941,10 +5941,10 @@ tr_execute_deferred_activities (DB_OBJECT * trigger_object, DB_OBJECT * target) } tail = tr_Deferred_activities->tail; - next = NULL; do { + next = t->next; trigger = t->trigger; if ((trigger_object == NULL || trigger->object == trigger_object) && (target == NULL || t->target == target)) @@ -5956,7 +5956,6 @@ tr_execute_deferred_activities (DB_OBJECT * trigger_object, DB_OBJECT * target) * If it turns out that we really want to keep these active, we'll have to contend with * what pt_exec_trigger_stmt is going to do when we pass it deleted objects. */ - next = t->next; remove_deferred_activity (t); } else