summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2012-08-12 02:20:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2012-08-12 02:20:43 (GMT)
commitcd5ad177a23698c1daf6fb8c4195336865d795d2 (patch)
tree13720372b8dcf964d99cbec2d7ff5de1bdbdd565 /test/h5test.c
parentcd3f42096b9a957e37c9df48aa0d31d9ed4bc537 (diff)
downloadhdf5-cd5ad177a23698c1daf6fb8c4195336865d795d2.zip
hdf5-cd5ad177a23698c1daf6fb8c4195336865d795d2.tar.gz
hdf5-cd5ad177a23698c1daf6fb8c4195336865d795d2.tar.bz2
[svn-r22669] Description:
Merge r22634:2266 from trunk to revise_chunks branch Tested on: Mac OSX/64 10.7.4 (amazon) w/debug, gcc-4.7.x, C++, FORTRAN and threadsafe (h5committest not needed on this branch)
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 7faba81..ea30fad 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -735,6 +735,8 @@ h5_set_info_object(void)
valp = envp = next = HDstrdup(envp);
+ if (!valp) return 0;
+
/* create an INFO object if not created yet */
if (h5_io_info_g == MPI_INFO_NULL)
MPI_Info_create(&h5_io_info_g);
@@ -761,6 +763,8 @@ h5_set_info_object(void)
while (*namep && (*namep == ' ' || *namep == '\t'))
namep++;
+ if (!*namep) continue; /* was all white space, so move to next k/v pair */
+
/* eat up any ending white spaces */
endp = &namep[strlen(namep) - 1];