From c111168a06e136dd46714c4297497ada8b670723 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Dec 2019 22:51:23 -0800 Subject: [PATCH] more bugs --- execution.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/execution.cc b/execution.cc index b0a12e58..05591751 100644 --- a/execution.cc +++ b/execution.cc @@ -1176,7 +1176,7 @@ sllnode* insertIntoActionList(action_list_t *list, ModelAction *a return list->insertAfter(rit, act); } } - return NULL; + return list->add_front(act); } } @@ -1185,7 +1185,7 @@ sllnode* insertIntoActionListAndSetCV(action_list_t *list, ModelA modelclock_t next_seq = act->get_seq_number(); if (rit == NULL) { act->create_cv(NULL); - return NULL; + return list->add_back(act); } else if (rit->getVal()->get_seq_number() <= next_seq) { act->create_cv(rit->getVal()); return list->add_back(act); @@ -1196,7 +1196,7 @@ sllnode* insertIntoActionListAndSetCV(action_list_t *list, ModelA return list->insertAfter(rit, act); } } - return NULL; + return list->add_front(act); } } -- 2.34.1