merge in ics-release history after reset to master
diff --git a/init/init.c b/init/init.c
index a1d6be1..ef42e02 100755
--- a/init/init.c
+++ b/init/init.c
@@ -491,7 +491,7 @@
 {
     struct listnode *node;
     node = list_head(&act->commands);
-    if (!node)
+    if (!node || list_empty(&act->commands))
         return NULL;
 
     return node_to_item(node, struct command, clist);