Fix removing destinations when it's not the last or only destination...

This commit is contained in:
Nils O. Selåsdal
2012-11-05 21:07:13 +01:00
parent 2b85b3865f
commit 56eb4b84b4
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ static inline void uc_log_remove_dest_unlocked(struct uc_log_destination *dest)
//check that it's not already removed
SLIST_FOREACH(it, &destinations, entry) {
if(it == dest);
if(it == dest)
break;
}