diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2011-10-13 16:13:47 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2011-10-13 16:13:47 (GMT) |
commit | 70eb4f0e2eb0613decbed9062b1fe2b6138fdefc (patch) | |
tree | 9c33382ff93b05ffe653b0781d7b8549e35d4ca7 /src/H5FDlog.c | |
parent | b2e5e9978d751a4467ad8615632cde480dcb2c89 (diff) | |
download | hdf5-70eb4f0e2eb0613decbed9062b1fe2b6138fdefc.zip hdf5-70eb4f0e2eb0613decbed9062b1fe2b6138fdefc.tar.gz hdf5-70eb4f0e2eb0613decbed9062b1fe2b6138fdefc.tar.bz2 |
[svn-r21546] Reverts 21497 (deep string copy of log file name). This string is copied correctly deep in the H5P code. Tested on local linux (trivial change).
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r-- | src/H5FDlog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c index 6fe38a4..092d7e6 100644 --- a/src/H5FDlog.c +++ b/src/H5FDlog.c @@ -345,8 +345,10 @@ H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, si if(NULL == (plist = H5P_object_verify(fapl_id, H5P_FILE_ACCESS))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list") - /* Deep copy the log filename */ - fa.logfile = H5MM_xstrdup(logfile); + /* This shallow copy is correct! The string will be properly + * copied deep down in the H5P code. + */ + fa.logfile = (char *)logfile; fa.flags = flags; fa.buf_size = buf_size; |