Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Cleanup and sanity-checking of integer overflow, null comparisons, dead code (Coverit...
[palacios.git] / palacios / src / devices / qcowdisk.c
index 910e9bd..6759682 100644 (file)
@@ -275,7 +275,7 @@ static v3_qcow2_t *v3_qcow2_open(struct v3_vm_info* vm, char *path, int flags)
   
   res->fd = v3_file_open(vm, path, flags);
        
-  if (res->fd < 0) {
+  if (!res->fd) {
     ERROR("failed to open underlying file\n");
     goto clean_mem;
   }