[NEW PATCH] BZ#738355 BZ#736422 guestIF: log exception before initialization of 'line' (via gerrit-bot)

Dan Kenigsberg danken at redhat.com
Thu Sep 15 10:21:40 UTC 2011


New patch submitted by Dan Kenigsberg (danken at redhat.com)

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

commit bd8a510de59a381f98e1c6248cba3a83daa3d8ef
Author: David Naori <dnaori at redhat.com>
Date:   Wed Sep 14 21:26:43 2011 +0300

    BZ#738355 BZ#736422 guestIF: log exception before initialization of 'line'
    
    Change-Id: I986c252afbd7e968dc3b42cbecd1a4180d875917

diff --git a/vdsm/guestIF.py b/vdsm/guestIF.py
index bd501b4..18930ac 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 = None
                 try:
                     line = self._readLine()
                     # line is always None after stop() is called and the




More information about the vdsm-patches mailing list