aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-14 19:31:56 +0200
committerThomas White <taw@physics.org>2010-04-14 19:31:56 +0200
commitd8750c73d11d08c13239091aca4ad325fcd16ba5 (patch)
tree5cb64a75ac48cefe9c821588c423f44aa2af199b
parent7ac0868f912364458f80665e78721bdebf9d8f87 (diff)
indexamajig: Properly handle counts list for simulation reflection list
-rw-r--r--src/indexamajig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index bb02d0f2..417fdc9a 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -387,7 +387,7 @@ int main(int argc, char *argv[])
UnitCell *cell;
double *intensities = NULL;
char *intfile = NULL;
- unsigned int *counts = NULL;
+ unsigned int *counts;
char *pdb = NULL;
char *prefix = NULL;
int nthreads = 1;
@@ -485,6 +485,7 @@ int main(int argc, char *argv[])
}
if ( intfile != NULL ) {
+ counts = new_list_count();
intensities = read_reflections(intfile, counts);
} else {
intensities = NULL;