summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-10-30 00:39:07 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-10-30 00:39:07 -0400
commita737d9da343cb5667d0bbc47404ee3abe6d572d2 (patch)
tree6957d8c8ff3f866738628fcedc1270734ca0c93d
parent78ec4a6186ad56065851e3f3e7ce02e3136c774c (diff)
bugfix: initialize count
-rw-r--r--src/load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/load.c b/src/load.c
index 3dce8de..237608e 100644
--- a/src/load.c
+++ b/src/load.c
@@ -64,6 +64,7 @@ struct heap* load(char **files, int no_files, unsigned int *count)
64 int i; 64 int i;
65 unsigned int c; 65 unsigned int c;
66 struct heap *h = NULL, *h2; 66 struct heap *h = NULL, *h2;
67 *count = 0;
67 for (i = 0; i < no_files; i++) { 68 for (i = 0; i < no_files; i++) {
68 h2 = heap_from_file(files[i], &c); 69 h2 = heap_from_file(files[i], &c);
69 if (!h2) 70 if (!h2)