[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v7 5/9] Add an implentation of asprintf() for xen



>>> On 09.05.14 at 10:40, <paul.durrant@xxxxxxxxxx> wrote:
> +int vasprintf(char **bufp, const char *fmt, va_list args)
> +{
> +    va_list args_copy;
> +    size_t size;
> +    char *buf, dummy[1];
> +
> +    va_copy(args_copy, args);
> +    size = vsnprintf(dummy, 0, fmt, args_copy);

Hmm, this is still dummy rather than NULL.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.