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] libxl: fix against if condition

To: "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] libxl: fix against if condition
From: ZhouPeng <zpengxen@xxxxxxxxx>
Date: Wed, 13 Apr 2011 14:43:53 +0800
Delivery-date: Tue, 12 Apr 2011 23:44:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=r5R1UARYtej5/eKuFoZDDVWC0hJpxsz7+ZdnkfSW61A=; b=xKHnBNWfc2iT9LpDNWAfIYiB1mIwP7XsVKSiRfLLgJsC1tgphbOw54P3QgC2WGH58q SYrzsT4UM0t1e9SVLklKjzejNAQ8lRDyvuNoKME1ZFfieAYir2poy4+nfDBooZeEMTV5 EYRDYSGiFi5rcVECz4aK+ZAglRVwb4mGKxJVA=
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=
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
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
<Prev in Thread] Current Thread [Next in Thread>