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-changelog

[Xen-changelog] [xen-unstable] Initialize last_error in libxc.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Initialize last_error in libxc.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 05 Oct 2007 13:40:08 -0700
Delivery-date: Fri, 05 Oct 2007 13:40:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1191591580 -3600
# Node ID a1d0a272c89053ffabf4705c7bfde83e5f503936
# Parent  61ef23e45e9c8fa17dfba7ef62d9390af5d806f7
Initialize last_error in libxc.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/libxc/xc_private.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 61ef23e45e9c -r a1d0a272c890 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Fri Oct 05 14:11:36 2007 +0100
+++ b/tools/libxc/xc_private.c  Fri Oct 05 14:39:40 2007 +0100
@@ -52,6 +52,7 @@ _xc_get_last_error(void)
     if (last_error == NULL) {
         last_error = malloc(sizeof(xc_error));
         pthread_setspecific(last_error_pkey, last_error);
+        xc_clear_last_error();
     }
 
     return last_error;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Initialize last_error in libxc., Xen patchbot-unstable <=