diff options
author | Thomas White <taw@physics.org> | 2013-03-04 10:11:59 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-03-04 10:11:59 +0100 |
commit | f5f19825380b91edf017af4f7353faf95f97508b (patch) | |
tree | ce4d7ae9fc5e52fcb3d4b1e2da1229aedbc2d751 /src/scaling-report.c | |
parent | 13659bf4eff299756603920aefef91f227b28186 (diff) |
partialator: Fix various memory bugs
Diffstat (limited to 'src/scaling-report.c')
-rw-r--r-- | src/scaling-report.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scaling-report.c b/src/scaling-report.c index b161a01e..a02a1796 100644 --- a/src/scaling-report.c +++ b/src/scaling-report.c @@ -733,6 +733,13 @@ static void find_most_sampled_reflections(RefList *list, int n, signed int *h, Reflection *refl; RefListIterator *iter; int *samples; + int j; + + for ( j=0; j<n; j++ ) { + h[j] = 0; + k[j] = 0; + l[j] = 0; + } samples = calloc(n, sizeof(int)); |