aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cell.c b/src/cell.c
index 42f34dfa..e7064002 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -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 {