WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH]fix undefined name error

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]fix undefined name error
From: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Date: Thu, 02 Jul 2009 15:39:10 +0800
Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Delivery-date: Thu, 02 Jul 2009 00:40:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.22 (X11/20090605)
hi,

this small patch fixes a undefined name error: mac may be referenced before 
definition.

Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>

thanks,

zhigang
--- XendDomainInfo.py   2009-07-01 00:03:09.000000000 +0800
+++ /share/tmp/XendDomainInfo.py        2009-07-02 15:31:43.000000000 +0800
@@ -1227,6 +1227,7 @@
         if rm_cfg:
             if deviceClass == 'vif':
                 if self.domid is not None:
+                    mac = ''
                     for dev_num, dev_info in sxprs:
                         dev_num = int(dev_num)
                         if dev_num == dev:
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>