Diff of /libdb/db_stat.c [191951] .. [6ee980]  Maximize  Restore

  Switch to side-by-side view

--- a/libdb/db_stat.c
+++ b/libdb/db_stat.c
@@ -65,7 +65,8 @@
 	}
 
 	result->max_list_length = max_length;
-	result->average_list_length = total_length / nr_non_empty_list;
+	result->average_list_length = (!nr_non_empty_list) ? 0
+	                                                   : total_length / nr_non_empty_list;
 
 	return result;
 }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks