Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7e7b4030
Commit
7e7b4030
authored
Nov 11, 2014
by
Florent Le Coz
Committed by
Max Kellermann
Nov 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Construct a Null AllocatedPath if the filename conversion into UTF8 failed
parent
c64ad78c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
NEWS
NEWS
+1
-0
AllocatedPath.cxx
src/fs/AllocatedPath.cxx
+5
-1
No files found.
NEWS
View file @
7e7b4030
ver 0.18.18 (not yet released)
* decoder
- ffmpeg: support opus
* fix crash on failed filename charset conversion
ver 0.18.17 (2014/11/02)
* playlist
...
...
src/fs/AllocatedPath.cxx
View file @
7e7b4030
...
...
@@ -46,7 +46,11 @@ AllocatedPath::Build(const_pointer a, const_pointer b)
AllocatedPath
AllocatedPath
::
FromUTF8
(
const
char
*
path_utf8
)
{
return
AllocatedPath
(
Donate
(),
::
PathFromUTF8
(
path_utf8
));
char
*
path
=
::
PathFromUTF8
(
path_utf8
);
if
(
path
==
nullptr
)
return
AllocatedPath
::
Null
();
return
AllocatedPath
(
Donate
(),
path
);
}
AllocatedPath
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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