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

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



# 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


 


Rackspace

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