[NEW PATCH] Assign local variable before reference it (via gerrit-bot)

Igor Lvovsky ilvovsky at redhat.com
Thu Sep 15 06:40:56 UTC 2011


New patch submitted by Igor Lvovsky (ilvovsky at redhat.com)

You can review this change at: http://gerrit.usersys.redhat.com/939

commit ad36fbcbb2d7501f277e3ad29557cad4990e8666
Author: Igor Lvovsky <ilvovsky at redhat.com>
Date:   Thu Sep 15 09:41:56 2011 +0300

    Assign local variable before reference it
    
    Change-Id: I2e9abf933648c51f4a8dd159b93b29ef85be4602

diff --git a/vdsm/guestIF.py b/vdsm/guestIF.py
index bd501b4..d896310 100644
--- a/vdsm/guestIF.py
+++ b/vdsm/guestIF.py
@@ -253,6 +253,7 @@ class GuestAgent (threading.Thread):
             self._forward('refresh')
             self._buffer = ''
             while not self._stopped:
+                line = ''
                 try:
                     line = self._readLine()
                     # line is always None after stop() is called and the




More information about the vdsm-patches mailing list