Commit b6db02f3 authored by Michal Privoznik's avatar Michal Privoznik

libvirtSnmp: Return @ret from libvirtSnmpDestroy

In f9648989 I've reworked libvirtSnmpDestroy() to follow the
usual code pattern (initializing @ret to -1 and setting it to 0
only as the last step). However, I forgot to actually return @ret
instead of 'return 0'.
Signed-off-by: 's avatarMichal Privoznik <mprivozn@redhat.com>
parent ca553640
......@@ -354,7 +354,7 @@ libvirtSnmpDestroy(unsigned char *uuid)
ret = 0;
cleanup:
virDomainFree(dom);
return 0;
return ret;
}
int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment