diff options
author | Thomas White <taw@physics.org> | 2010-03-31 16:45:07 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-03-31 16:45:07 +0200 |
commit | fe13ba95984f107a63df837dbbb946d194478d96 (patch) | |
tree | bc2eb15d92aa3f23ce94c45b5ead3a68fff828c7 /src/cell.c | |
parent | 36101613181f24e22d435ce22b788fec96033977 (diff) |
Catch failure to open PDB in load_cell_from_pdb()
Diffstat (limited to 'src/cell.c')
-rw-r--r-- | src/cell.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -624,6 +624,10 @@ UnitCell *load_cell_from_pdb(const char *filename) UnitCell *cell = NULL; fh = fopen(filename, "r"); + if ( fh == NULL ) { + ERROR("Couldn't open '%s'\n", filename); + return NULL; + } do { |