Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
0c7073f0
Commit
0c7073f0
authored
Jun 29, 2018
by
Philipp Schafft
🦁
Browse files
Update: Attach definition to childs based on their type
parent
4188bd89
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/reportxml.c
View file @
0c7073f0
...
...
@@ -1288,8 +1288,11 @@ reportxml_t * reportxml_database_build_report(reportxml_database_t *db
for
(
i
=
0
;
i
<
(
size_t
)
count
;
i
++
)
{
child
=
reportxml_node_get_child
(
definition
,
i
);
if
(
i
==
0
)
{
/* Attach definition to the first child only. */
if
(
reportxml_node_get_type
(
child
)
==
type
)
{
/* Attach definition to all childs that are the same type.
* As long as we work to-the-specs all childs are of the same type.
* But if we work in relaxed mode, there might be other tags.
*/
reportxml_node_set_attribute
(
child
,
"definition"
,
id
);
}
...
...
Write
Preview
Supports
Markdown
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