]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Missing 'removeTimeoutImpl' check variable inside virEventRegisterImpl() function.
authorJulio Faracco <jcfaracco@gmail.com>
Thu, 19 Oct 2017 15:35:03 +0000 (13:35 -0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 20 Oct 2017 13:15:35 +0000 (15:15 +0200)
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>
src/util/virevent.c

index 51d8714df49fd980a1f0639dd3de8401c9afce14..87069e35b9ade600af6f0ad243756bfb8709387b 100644 (file)
@@ -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;
     }