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

Jim Meyering jim at meyering.net
Fri Feb 5 14:03:28 UTC 2010


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.




More information about the libvir-list mailing list