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
eeb8d0db
Commit
eeb8d0db
authored
Sep 18, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/proxy: support empty values in VisitUniqueTags()
Workaround for assertion failure in PrintUniqueTag().
parent
22eb831a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ProxyDatabasePlugin.cxx
src/db/plugins/ProxyDatabasePlugin.cxx
+9
-0
No files found.
src/db/plugins/ProxyDatabasePlugin.cxx
View file @
eeb8d0db
...
...
@@ -779,6 +779,15 @@ ProxyDatabase::VisitUniqueTags(const DatabaseSelection &selection,
(
pair
=
mpd_recv_pair_tag
(
connection
,
tag_type2
))
!=
nullptr
)
{
TagBuilder
tag
;
tag
.
AddItem
(
tag_type
,
pair
->
value
);
if
(
tag
.
IsEmpty
())
/* if no tag item has been added, then the
given value was not acceptable
(e.g. empty); forcefully insert an empty
tag in this case, as the caller expects the
given tag type to be present */
tag
.
AddEmptyItem
(
tag_type
);
result
=
visit_tag
(
tag
.
Commit
(),
error
);
mpd_return_pair
(
connection
,
pair
);
}
...
...
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