On 2015-06-26 00:21, Juliusz Chroboczek wrote:
> ---
>  libubus.c   | 3 +++
>  ubusd_acl.c | 2 ++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/libubus.c b/libubus.c
> index ccaa069..9aae613 100644
> --- a/libubus.c
> +++ b/libubus.c
> @@ -77,6 +77,9 @@ ubus_queue_msg(struct ubus_context *ctx, struct 
> ubus_msghdr_buf *buf)
>       void *data;
>  
>       pending = calloc_a(sizeof(*pending), &data, blob_raw_len(buf->data));
> +        if (!pending)
> +             /* XXX */
> +             return;
Please use tab instead of space for indenting. Also, why XXX here?

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to