aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_private.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-21 18:36:39 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-21 18:36:39 +0100
commit411e8c2fef67c8c31b466f4cad10cc42b3c328e7 (patch)
treefaf8e336df541fc26b1d6ac91cf6888ccb1f8af2 /tools/libxc/xc_private.c
parente862bdf68fdc53d9cee4686b579fd8dd8d31ff32 (diff)
downloadxen-411e8c2fef67c8c31b466f4cad10cc42b3c328e7.tar.gz
xen-411e8c2fef67c8c31b466f4cad10cc42b3c328e7.tar.bz2
xen-411e8c2fef67c8c31b466f4cad10cc42b3c328e7.zip
Revert 21640:05e127771b86 "libxc: Fix Segmentation fault of xend"
Nacked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.c')
-rw-r--r--tools/libxc/xc_private.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c
index 13a990a58c..9761b98af4 100644
--- a/tools/libxc/xc_private.c
+++ b/tools/libxc/xc_private.c
@@ -82,10 +82,8 @@ const xc_error *xc_get_last_error(xc_interface *xch)
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)