summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2011-10-13 16:11:21 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2011-10-13 16:11:21 (GMT)
commitd3b93413f7602f276da2c84834b795da5df0c9b5 (patch)
tree51a80d512b3e93ae785a5e79552d59a327ffaa57 /src
parent17d435522bea33935f1d8af971712cc6686547cc (diff)
downloadhdf5-d3b93413f7602f276da2c84834b795da5df0c9b5.zip
hdf5-d3b93413f7602f276da2c84834b795da5df0c9b5.tar.gz
hdf5-d3b93413f7602f276da2c84834b795da5df0c9b5.tar.bz2
[svn-r21545] Reverts 21521 (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')
-rw-r--r--src/H5FDlog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index 3c8b532..2cb795e 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -343,8 +343,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;