From: Boris Fiuczynski <fiuczy(a)linux.vnet.ibm.com>
Variable ret is used before assignment.
Signed-off-by: Boris Fiuczynski <fiuczy(a)linux.vnet.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay(a)linux.vnet.ibm.com>
---
libvirt-override-virStream.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libvirt-override-virStream.py b/libvirt-override-virStream.py
index 358a5f6a93df..901c2e6af94e 100644
--- a/libvirt-override-virStream.py
+++ b/libvirt-override-virStream.py
@@ -258,7 +258,7 @@
got = handler(self, want, opaque)
if type(got) is int and got < 0:
self.abort()
- raise RuntimeError("sparseSendAll handler returned %d" % ret)
+ raise RuntimeError("sparseSendAll handler returned %d" % got)
if not got:
break
--
2.13.4