summaryrefslogtreecommitdiffstats
path: root/test/file_handle.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2005-10-14 18:31:18 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2005-10-14 18:31:18 (GMT)
commit7d2423ea38b8c47f92a8b332450b38e3a2d1fe0d (patch)
treef3a3ce4be448370558dbd47fd6b3bfc7ec8c0272 /test/file_handle.c
parentabff0857a0cae7a578c08541d7ec0197faf64fd4 (diff)
downloadhdf5-7d2423ea38b8c47f92a8b332450b38e3a2d1fe0d.zip
hdf5-7d2423ea38b8c47f92a8b332450b38e3a2d1fe0d.tar.gz
hdf5-7d2423ea38b8c47f92a8b332450b38e3a2d1fe0d.tar.bz2
[svn-r11560] Purpose:
bug fix for family file driver forward compatibility test Description: Because there is no srcdir on windows, string pathname should be initialized as NULL before using strcat. Solution: Changed the code as above. Platforms tested: windows xp, too minor to use h5committest Misc. update:
Diffstat (limited to 'test/file_handle.c')
-rw-r--r--test/file_handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/file_handle.c b/test/file_handle.c
index 76364c5..70fdc25 100644
--- a/test/file_handle.c
+++ b/test/file_handle.c
@@ -374,6 +374,7 @@ test_family_compat(void)
goto error;
h5_fixname(COMPAT_BASENAME, fapl, filename, sizeof filename);
+ pathname[0] = '\0';
/* Generate correct name for test file by prepending the source path */
if(srcdir && ((strlen(srcdir) + strlen(filename) + 1) < sizeof(pathname))) {