Diff between f4febbbd435fafdfd8fb22fadcbf289fad1f1d71 and e2b74c4be6cd9f72e03534b21211d0d2775197c2
Changed Files
| File | Additions | Deletions | Status |
| obexd/src/mimetype.c | +3 | -1 | modified |
Full Patch
diff --git a/obexd/src/mimetype.c b/obexd/src/mimetype.c
index 4a30222..078d97c 100644
--- a/obexd/src/mimetype.c
+++ b/obexd/src/mimetype.c
@@ -50,9 +50,11 @@ void obex_object_set_io_flags(void *object, int flags, int err)
{
GSList *l;
- for (l = watches; l; l = l->next) {
+ for (l = watches; l;) {
struct io_watch *watch = l->data;
+ l = l->next;
+
if (watch->object != object)
continue;