aboutsummaryrefslogtreecommitdiff
path: root/libmpio/src/directory.c
diff options
context:
space:
mode:
authorgermeier <germeier>2004-04-23 19:21:07 +0000
committergermeier <germeier>2004-04-23 19:21:07 +0000
commit70c554eb583caaedeebc94c8af44168831ce8167 (patch)
treecb0e5ef6201b98860b7b539c1d34a0691ff21634 /libmpio/src/directory.c
parentbac753b8405c719efd4b922c81983fd75e5486fe (diff)
downloadmpiosh-70c554eb583caaedeebc94c8af44168831ce8167.tar.gz
mpiosh-70c554eb583caaedeebc94c8af44168831ce8167.tar.bz2
mpiosh-70c554eb583caaedeebc94c8af44168831ce8167.zip
don't dump core if internal memory is not available
Diffstat (limited to 'libmpio/src/directory.c')
-rw-r--r--libmpio/src/directory.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpio/src/directory.c b/libmpio/src/directory.c
index e0065bd..4827ae3 100644
--- a/libmpio/src/directory.c
+++ b/libmpio/src/directory.c
@@ -1,5 +1,5 @@
/*
- * $Id: directory.c,v 1.12 2003/10/19 21:06:35 germeier Exp $
+ * $Id: directory.c,v 1.13 2004/04/23 19:21:07 germeier Exp $
*
* libmpio - a library for accessing Digit@lways MPIO players
* Copyright (C) 2002, 2003 Markus Germeier
@@ -231,6 +231,8 @@ mpio_directory_open(mpio_t *m, mpio_mem_t mem)
return NULL;
}
} else {
+ if (!m->internal.size)
+ return NULL;
out = m->internal.cdir->dir;
}