An extra '&' introduced a crash.
https://bugzilla.redhat.com/show_bug.cgi?id=2178866
Fixes: 778c3004609ede0a9df4cf3e01c031047530efb7
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
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