Hi Gustavo, On Wed, Jun 16, 2010, Gustavo F. Padovan wrote: > +void __btd_log_init(const char *debug, int detach) > +{ > + int option = LOG_NDELAY | LOG_PID; > + > + debug_string = (char *)debug; This doesn't look right. Either the function declares the parameter as const for a reason (i.e. it promises not to mess around with it) or then the const should go away. I think the former is correct in this case, i.e. you should probably be doing g_strdup on the input parameter. Johan -- 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