diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pattern_sim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 0c35cc89..bad74615 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -416,6 +416,10 @@ int main(int argc, char *argv[]) RefList *reflections; reflections = read_reflections(intfile); + if (reflections == NULL) { + ERROR("Problem reading input file %s\n",intfile); + return 1; + } free(intfile); if ( grad == GRADIENT_PHASED ) { |