aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-05 15:40:10 +0200
committerThomas White <taw@bitwiz.org.uk>2010-06-05 15:40:10 +0200
commit60c2e01b0faa0ff4955d9ffe1e99c7c8cffc2c5c (patch)
tree8f1920b724f7598c11e9dcf2028656613cec8e6d /src/pattern_sim.c
parentea369696428af621a3acfd53791d9c98d4402584 (diff)
Fix/add exit paths
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 39931bdb..05cdcf9d 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -319,6 +319,9 @@ int main(int argc, char *argv[])
image.height = 1024;
image.lambda = ph_en_to_lambda(eV_to_J(PHOTON_ENERGY)); /* Wavelength */
cell = load_cell_from_pdb(filename);
+ if ( cell == NULL ) {
+ exit(1);
+ }
image.filename = NULL;
image.features = NULL;
image.flags = NULL;