summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/vfd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/vfd.c b/test/vfd.c
index b4c863f..674bd54 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -473,6 +473,7 @@ test_family_compat(void)
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))) {
strcpy(pathname, srcdir);