diff options
Diffstat (limited to 'test/external.c')
-rw-r--r-- | test/external.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/external.c b/test/external.c index 769cd16..d05889e 100644 --- a/test/external.c +++ b/test/external.c @@ -841,7 +841,6 @@ test_4 (hid_t fapl) hid_t fid, gid, xid, xid2; char filename[1024]; /*file name */ char pathname[1024]; - char linked_pathname[1024]; char *srcdir = getenv("srcdir"); /*where the src code is located*/ const char *envval = NULL; @@ -879,7 +878,7 @@ test_4 (hid_t fapl) goto error; /* Reopen the file */ - if((fid = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) + if((fid = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0) goto error; /* Open the external link */ |