ia64/xen-unstable

changeset 6137:c813cb64d82e

not valid file descriptor is -1 not 0
author vh249@arcadians.cl.cam.ac.uk
date Fri Aug 12 10:51:39 2005 +0000 (2005-08-12)
parents b7ee6eb5000b
children 1fb1877ed6d1
files tools/libxc/xc_core.c
line diff
     1.1 --- a/tools/libxc/xc_core.c	Fri Aug 12 10:48:42 2005 +0000
     1.2 +++ b/tools/libxc/xc_core.c	Fri Aug 12 10:51:39 2005 +0000
     1.3 @@ -108,7 +108,7 @@ xc_domain_dumpcore(int xc_handle,
     1.4  	free(dump_mem_start);
     1.5  	return 0;
     1.6   error_out:
     1.7 -	if (dump_fd)
     1.8 +	if (dump_fd != -1)
     1.9  		close(dump_fd);
    1.10  	free(dump_mem_start);
    1.11  	return -1;