Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
4707034a
Commit
4707034a
authored
Dec 30, 2015
by
Hugo Beauzée-Luyssen
Browse files
fs: unix: Device: Ensure a mountpoint path ends with '/'
This is assumed when composing file path
parent
f0f0e53f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filesystem/unix/Device.cpp
View file @
4707034a
...
...
@@ -57,6 +57,8 @@ Device::Device( const std::string& uuid, const std::string& mountpoint, bool isR
,
m_present
(
true
)
,
m_removable
(
isRemovable
)
{
if
(
*
m_mountpoint
.
crbegin
()
!=
'/'
)
m_mountpoint
+=
'/'
;
}
const
std
::
string
&
Device
::
uuid
()
const
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment