]> xenbits.xensource.com Git - libvirt.git/commitdiff
ch: virCHMonitorGetIOThreads: fix g_steal_pointer usage
authorJán Tomko <jtomko@redhat.com>
Wed, 2 Feb 2022 16:22:50 +0000 (17:22 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 3 Feb 2022 13:15:04 +0000 (14:15 +0100)
Fixes: 81226d88034fd460855ac75dd2c985ca91ff6219
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/ch/ch_monitor.c

index 4d5d2c69b8a013b54a1d8359f4b92042722e8232..60905e36c28abc7e1df5663a285aa208078a0583 100644 (file)
@@ -977,7 +977,7 @@ virCHMonitorGetIOThreads(virCHMonitor *mon,
     }
 
     VIR_DEBUG("niothreads = %ld", niothreads);
-    *iothreads = g_steal_pointer(iothreadinfolist);
+    *iothreads = g_steal_pointer(&iothreadinfolist);
     return niothreads;
 
  error: