Hi Yang,

> +     sr->serv_rec = g_try_malloc(sr->len);
> +     if (sr->serv_rec == NULL)
> +             return FALSE;

I suggest not trying to allocate 0 bytes.

Regards,
-Denis
_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to