diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-10-30 00:39:07 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-10-30 00:39:07 -0400 |
commit | a737d9da343cb5667d0bbc47404ee3abe6d572d2 (patch) | |
tree | 6957d8c8ff3f866738628fcedc1270734ca0c93d | |
parent | 78ec4a6186ad56065851e3f3e7ce02e3136c774c (diff) |
bugfix: initialize count
-rw-r--r-- | src/load.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |