not valid file descriptor is -1 not 0

This commit is contained in:
vh249@arcadians.cl.cam.ac.uk committed 2005-08-12 10:51:39 +00:00
1 parent 3abb5c2914
commit 39b35eca80
1 file changed
+1 -1
+1 -1
View File
@@ -108,7 +108,7 @@ xc_domain_dumpcore(int xc_handle,
free(dump_mem_start);
return 0;
error_out:
if (dump_fd)
if (dump_fd != -1)
close(dump_fd);
free(dump_mem_start);
return -1;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.