On Thu, 2012-10-04 at 14:21 -0300, Lucas De Marchi wrote: > On Thu, Oct 4, 2012 at 2:16 PM, Bastien Nocera <hadess@xxxxxxxxxx> wrote: > > On Thu, 2012-10-04 at 14:07 -0300, Lucas De Marchi wrote: > >> - for (l = device->profiles; l != NULL; l = g_slist_next(l)) { > >> + for (l = device->profiles; l != NULL; l = next) { > > > > + for (l = device->profiles; l != NULL; l = l->next) { > > nops. you can't access "l" if it was deleted from the list Right. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html