Hi Marcel,

g_slist_remove and g_slist_length do nothing if NULL is passed in.
So it's not really necessary to check update_list, but I agree it's
more clear with a update_list != NULL. Do you still want me to add
it?

Yes please. There is also a BKM somewhere that says that the NULL check
is preferred instead checking for length equals zero.

I just found out that g_slist_remove() will return NULL if it removes
the last element. So checking for NULL makes perfectly sense.

Thanks for the hint.

regards,
Daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to