[libvirt] [PATCH v3 25/34] Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/*

Michal Privoznik mprivozn at redhat.com
Mon May 20 11:40:26 UTC 2013


On 20.05.2013 13:07, Ján Tomko wrote:
> On 05/03/2013 04:53 PM, Michal Privoznik wrote:
>>  32 files changed, 356 insertions(+), 567 deletions(-)
> 
> These functions returned 0 on success before and will need to be adjusted
> since VIR_STRDUP returns 1 on a successful copy now.

I don't think so, as long as all callers check for error correctly:

    if (func() < 0)
        goto error;

Which all callers of these functions do.

Michal




More information about the libvir-list mailing list