mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
util: Missing 'removeTimeoutImpl' check variable inside virEventRegisterImpl() function.
The function virEventRegisterImpl() checks the attempt to replace the registered events. But there is a duplicate variable inside the IF statement. The variable 'removeHandleImpl' was wrongly repeated. One of them needs to be replaced by 'removeTimeoutImpl'. Signed-off-by: Julio Faracco <jcfaracco@gmail.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
58c1e16951
commit
89622ebfad
@ -241,7 +241,7 @@ void virEventRegisterImpl(virEventAddHandleFunc addHandle,
|
||||
addTimeout, updateTimeout, removeTimeout);
|
||||
|
||||
if (addHandleImpl || updateHandleImpl || removeHandleImpl ||
|
||||
addTimeoutImpl || updateTimeoutImpl || removeHandleImpl) {
|
||||
addTimeoutImpl || updateTimeoutImpl || removeTimeoutImpl) {
|
||||
VIR_WARN("Ignoring attempt to replace registered event loop");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user