[libvirt PATCH] rpc: fix typo in admin code generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



An extra '&' introduced a crash.

https://bugzilla.redhat.com/show_bug.cgi?id=2178866

Fixes: 778c3004609ede0a9df4cf3e01c031047530efb7
Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/rpc/gendispatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
index b186849606..704c133215 100755
--- a/src/rpc/gendispatch.pl
+++ b/src/rpc/gendispatch.pl
@@ -1812,7 +1812,7 @@ elsif ($mode eq "client") {
         }
 
         if ($structprefix eq "admin") {
-            print "    VIR_LOCK_GUARD lock = virObjectLockGuard(&priv);\n";
+            print "    VIR_LOCK_GUARD lock = virObjectLockGuard(priv);\n";
         } else {
             print "    VIR_LOCK_GUARD lock = remoteDriverLock(priv);\n";
         }
-- 
2.39.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux