diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2005-10-14 18:31:18 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2005-10-14 18:31:18 (GMT) |
commit | 7d2423ea38b8c47f92a8b332450b38e3a2d1fe0d (patch) | |
tree | f3a3ce4be448370558dbd47fd6b3bfc7ec8c0272 /test | |
parent | abff0857a0cae7a578c08541d7ec0197faf64fd4 (diff) | |
download | hdf5-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')
-rw-r--r-- | test/file_handle.c | 1 |
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))) { |