Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PatchedHighFive
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DISC
PatchedHighFive
Commits
1d586c7b
Commit
1d586c7b
authored
3 years ago
by
Fernando Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Avoid exception when getting the filename of un-init file
Just return the empty string
parent
f2a6b1d2
Branches
fix/file_no_name
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/highfive/bits/H5File_misc.hpp
+1
-1
1 addition, 1 deletion
include/highfive/bits/H5File_misc.hpp
with
1 addition
and
1 deletion
include/highfive/bits/H5File_misc.hpp
+
1
−
1
View file @
1d586c7b
...
...
@@ -76,7 +76,7 @@ inline File::File(const std::string& filename, unsigned openFlags,
}
inline
const
std
::
string
&
File
::
getName
()
const
noexcept
{
if
(
_filename
.
empty
())
{
if
(
_filename
.
empty
()
&&
isValid
()
)
{
_filename
=
details
::
get_name
([
this
](
char
*
buffer
,
hsize_t
length
)
{
return
H5Fget_name
(
getId
(),
buffer
,
length
);
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment