On 06/24/2014 03:20 AM, Ian Campbell wrote:
I see VIR_STRDUP actually does handle NULL input correctly, which was
what I was worried about.
Yes, it is by design that VIR_STRDUP(NULL) works, and gives a different
return value (0) than when dup'ing a string (positive) or on failure
(negative).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org