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

[Xen-changelog] [xen-unstable] Revert 21640:05e127771b86 "libxc: Fix Segmentation fault of xend"



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1277141799 -3600
# Node ID be9bf07fc818944fa9ddf8e901ba38dd30ec6150
# Parent  fbef5b14f424c060a80fcb02228e87a4e7b93925
Revert 21640:05e127771b86 "libxc: Fix Segmentation fault of xend"

Nacked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/libxc/xc_private.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff -r fbef5b14f424 -r be9bf07fc818 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Mon Jun 21 18:35:10 2010 +0100
+++ b/tools/libxc/xc_private.c  Mon Jun 21 18:36:39 2010 +0100
@@ -82,10 +82,8 @@ const xc_error *xc_get_last_error(xc_int
 
 void xc_clear_last_error(xc_interface *xch)
 {
-    if (xch) {
-        xch->last_error.code = XC_ERROR_NONE;
-        xch->last_error.message[0] = '\0';
-    }
+    xch->last_error.code = XC_ERROR_NONE;
+    xch->last_error.message[0] = '\0';
 }
 
 const char *xc_error_code_to_desc(int code)

_______________________________________________
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®.