[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] libxl: fix against if condition


  • To: "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: ZhouPeng <zpengxen@xxxxxxxxx>
  • Date: Wed, 13 Apr 2011 14:43:53 +0800
  • Delivery-date: Tue, 12 Apr 2011 23:44:55 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tIrOjjZXViAjeryb5lRM2tKYcjNwJqbZa5zMYRjqPi5LTaaJJ/NNTPSwzzPndT+6OL /eLPb/2Q1sO1NpW4dRmqlZeBGZOhh5XY0mpgx0xgh6QnDLQlNn0A+lnI4vVU793Lyu7E DODS5QHFVCmjri+cu1T8GzsmfWh+RW0hbFxkw=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Signed-off-by: Zhou Peng <zhoupeng@xxxxxxxxxxxxxxx>

--- a/tools/libxl/libxl_dm.c    Wed Apr 13 14:08:41 2011 +0800
+++ b/tools/libxl/libxl_dm.c    Wed Apr 13 14:20:37 2011 +0800
@@ -197,7 +197,7 @@ static char ** libxl_build_device_model_
         int display = 0;
         const char *listen = "127.0.0.1";
 
-        if (info->vncpasswd && info->vncpasswd[0]) {
+        if (info->vncpasswd && !info->vncpasswd[0]) {
             assert(!"missing code for supplying vnc password to qemu");
         }
         flexarray_append(dm_args, "-vnc");

--
Zhou Peng
Operating System Technology Group
Institute of Software, the Chinese Academy of Sciences (ISCAS)

Attachment: libxl-against-if-condition.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.