[PATCH 05/17] Add parser for service record objects

Denis Kenzior denkenz at gmail.com
Tue Apr 20 14:55:53 PDT 2010


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


More information about the ofono mailing list