Browse Source

SOCL: fix infinite loop bug

Sylvain Henry 13 years ago
parent
commit
b12cf3fb9d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      socl/src/command_list.c

+ 1 - 0
socl/src/command_list.c

@@ -35,6 +35,7 @@ command_list command_list_remove(command_list l, cl_command cmd) {
 			free(e);
 			if (e == l) return next;
 		}
+		e = e->next;
 	}
 	return l;
 }