|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #54299] HDF5 file I/O unit tests fail or crash Octave |
Date: | Fri, 13 Jul 2018 06:06:39 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 |
Follow-up Comment #7, bug #54299 (project octave): It looks like the lifetime of the temporary std::string or the char pointer returned by c_str is compiler(?) dependent. jwe's diff looks good to me and since it also fixes the original problem, that change should be made. Thank you for coming up with the right idea so quickly. It shouldn't cause problems using the original string later on in the code because both file paths should be pointing to the exact same file on disc. In fact imho, wherever it is possible the original file name should be used instead of a (possibly cryptic) name of a hard link to that file. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54299> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |