summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))) {