Selaa lähdekoodia

SOCL: fix infinite loop bug

Sylvain Henry 14 vuotta sitten
vanhempi
commit
b12cf3fb9d
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;
 }