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 (VNET)
Peter Dinda [Wed, 1 Jul 2015 22:37:52 +0000 (17:37 -0500)]
palacios/src/vnet/vnet_hashtable.c

index 0da81bd..08c14c5 100644 (file)
@@ -196,6 +196,10 @@ struct hashtable * vnet_create_htable(uint_t min_size,
        }
     }
 
+    if (prime_index==prime_table_length) { 
+       return NULL;
+    }
+
     htable = (struct hashtable *)Vnet_Malloc(sizeof(struct hashtable));
 
     if (htable == NULL) {