aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2008-11-04 09:50:51 +0000
committerThomas White <taw27@cam.ac.uk>2008-11-04 09:50:51 +0000
commit2f82512745ecbd75bf4fd04cb5f7ff06642943aa (patch)
tree5d9cc6815ddb8828040894ef3e20bee0d12ba262
parent9055e1f2517b0bf867335603198871a604e9a426 (diff)
Fix crashiness when not using cached reflections
-rw-r--r--src/control.c3
-rw-r--r--src/main.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/control.c b/src/control.c
index b822457..256a979 100644
--- a/src/control.c
+++ b/src/control.c
@@ -3,7 +3,7 @@
*
* Common control structure
*
- * (c) 2007 Thomas White <taw27@cam.ac.uk>
+ * (c) 2007-2008 Thomas White <taw27@cam.ac.uk>
*
* dtr - Diffraction Tomography Reconstruction
*
@@ -32,6 +32,7 @@ ControlContext *control_ctx_new() {
ctx->refine_window = NULL;
ctx->cell_lattice = NULL;
ctx->integrated = NULL;
+ ctx->cache_filename = NULL;
return ctx;
diff --git a/src/main.c b/src/main.c
index 7bc4ab4..494dc46 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,8 +3,8 @@
*
* The Top Level Source File
*
- * (c) 2007 Thomas White <taw27@cam.ac.uk>
- * Gordon Ball <gfb21@cam.ac.uk>
+ * (c) 2007-2008 Thomas White <taw27@cam.ac.uk>
+ * (c) 2007 Gordon Ball <gfb21@cam.ac.uk>
*
* dtr - Diffraction Tomography Reconstruction
*
@@ -48,7 +48,7 @@ void main_do_reconstruction(ControlContext *ctx) {
prealign_fine_centering(ctx->images, ctx->sum_stack);
}
- if ( !ctx->cache_filename ) {
+ if ( ctx->cache_filename == NULL ) {
int i;