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

Re: [libvirt] [PATCH] (absolutePathFromBaseFile): fix up preceding commit



Jim Meyering wrote:
...
> +    ignore_value(virAsprintf(&res, "%.*s/%s", (int) d_len, base_file, path));

Regarding this, I will be removing the warn_unused_result
attribute from virAsprintf (and this use of ignore_value),
since it *is* ok to ignore its return value, since it guarantees
the pointer arg is set to NULL whenever it fails.


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