summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-07-29 16:51:24 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-07-29 16:51:24 (GMT)
commit3f701fda6528be0844afa2315c2a28357591349a (patch)
tree4db5578893136761f884f4a56b7a540b7dab1be1 /src
parent2173d36d66a9eefe6c2cca8716821770f870b358 (diff)
downloadhdf5-3f701fda6528be0844afa2315c2a28357591349a.zip
hdf5-3f701fda6528be0844afa2315c2a28357591349a.tar.gz
hdf5-3f701fda6528be0844afa2315c2a28357591349a.tar.bz2
[svn-r25487] store all members of the driver info in the file structs since they
will be needed if H5Pget_create_plist is called. tested jam. minor change.
Diffstat (limited to 'src')
-rw-r--r--src/H5FDlog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index cb04b80..fdc2c92 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -598,6 +598,11 @@ H5FD_log_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
/* Get the flags for logging */
file->fa.flags = fa->flags;
+ if(fa->logfile)
+ file->fa.logfile = HDstrdup(fa->logfile);
+ else
+ file->fa.logfile = NULL;
+ file->fa.buf_size = fa->buf_size;
/* Check if we are doing any logging at all */
if(file->fa.flags != 0) {
@@ -798,6 +803,11 @@ H5FD_log_close(H5FD_t *_file)
HDfclose(file->logfp);
} /* end if */
+ if(file->fa.logfile) {
+ HDfree(file->fa.logfile);
+ file->fa.logfile = NULL;
+ }
+
/* Release the file info */
file = H5FL_FREE(H5FD_log_t, file);