diff options
author | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2007-06-01 10:51:08 +0000 |
---|---|---|
committer | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2007-06-01 10:51:08 +0000 |
commit | a60b8de413b6ed4b7609fffa9c19154c7914b2c3 (patch) | |
tree | 83af7a7e17c13e8b3214b1a2001d86d2e1ac661e | |
parent | 18fb37ab823da7f64dbd71dad6b0762dd41f55ff (diff) |
check for a valid cctkGH pointer passed into IOUtil_RecoverVarsFromDatafiles()
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@253 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r-- | src/CheckpointRecovery.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c index 93bad2a..f9aee40 100644 --- a/src/CheckpointRecovery.c +++ b/src/CheckpointRecovery.c @@ -413,6 +413,11 @@ int IOUtil_RecoverVarsFromDatafiles (cGH *GH, myGH = CCTK_GHExtension (GH, "IO"); + if (myGH == NULL) + { + CCTK_WARN (0, "invalid cctkGH pointer passed into " + "IOUtil_RecoverVarsFromDatafiles()"); + } if (CCTK_NumVars () > 0) { |