mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
rpc: Use glib memory functions in virNetMessageSaveError
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e228d6b92a
commit
a922e72756
@ -539,8 +539,8 @@ void virNetMessageSaveError(virNetMessageErrorPtr rerr)
|
||||
} else {
|
||||
rerr->code = VIR_ERR_INTERNAL_ERROR;
|
||||
rerr->domain = VIR_FROM_RPC;
|
||||
if (VIR_ALLOC_QUIET(rerr->message) == 0)
|
||||
*rerr->message = g_strdup(_("Library function returned error but did not set virError"));
|
||||
rerr->message = g_new0(virNetMessageNonnullString, 1);
|
||||
*rerr->message = g_strdup(_("Library function returned error but did not set virError"));
|
||||
rerr->level = VIR_ERR_ERROR;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user