ia64/xen-unstable

changeset 16075:a1d0a272c890

Initialize last_error in libxc.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir@xensource.com>
date Fri Oct 05 14:39:40 2007 +0100 (2007-10-05)
parents 61ef23e45e9c
children 0c2535407828
files tools/libxc/xc_private.c
line diff
     1.1 --- a/tools/libxc/xc_private.c	Fri Oct 05 14:11:36 2007 +0100
     1.2 +++ b/tools/libxc/xc_private.c	Fri Oct 05 14:39:40 2007 +0100
     1.3 @@ -52,6 +52,7 @@ static xc_error *
     1.4      if (last_error == NULL) {
     1.5          last_error = malloc(sizeof(xc_error));
     1.6          pthread_setspecific(last_error_pkey, last_error);
     1.7 +        xc_clear_last_error();
     1.8      }
     1.9  
    1.10      return last_error;