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 based on cppcheck pass (Core)
[palacios.git] / palacios / src / palacios / vmm_hashtable.c
index fd8f3a2..8400416 100644 (file)
@@ -222,6 +222,10 @@ struct hashtable * v3_create_htable(uint_t min_size,
        }
     }
 
+    if (prime_index==prime_table_length) { 
+       return NULL;
+    }
+
     htable = (struct hashtable *)V3_Malloc(sizeof(struct hashtable));
 
     if (htable == NULL) {