Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
fecc3845
Commit
fecc3845
authored
Jun 08, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: Added useful error message in case of unknown node name
parent
6f9c20e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/reportxml.c
src/reportxml.c
+3
-1
No files found.
src/reportxml.c
View file @
fecc3845
...
...
@@ -347,8 +347,10 @@ reportxml_node_t * reportxml_node_parse_xmlnode(xmlNodePtr xmlnode)
return
NULL
;
nodedef
=
__get_nodedef_by_name
((
const
char
*
)
xmlnode
->
name
);
if
(
!
nodedef
)
if
(
!
nodedef
)
{
ICECAST_LOG_ERROR
(
"Can not parse XML node: Unknown name <%s>"
,
xmlnode
->
name
);
return
NULL
;
}
node
=
reportxml_node_new
(
nodedef
->
type
,
NULL
,
NULL
,
NULL
);
if
(
!
node
)
...
...
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