Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Scholz
Icecast-Server
Commits
fb088de5
Commit
fb088de5
authored
Dec 19, 2014
by
Philipp Schafft
🦁
Browse files
Fix: only export name="" on <role> if set
parent
4c429ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stats.c
View file @
fb088de5
...
...
@@ -878,7 +878,8 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
snprintf
(
idbuf
,
sizeof
(
idbuf
),
"%lu"
,
auth
->
id
);
role
=
xmlNewTextChild
(
authentication
,
NULL
,
XMLSTR
(
"role"
),
NULL
);
xmlSetProp
(
role
,
XMLSTR
(
"id"
),
XMLSTR
(
idbuf
));
xmlSetProp
(
role
,
XMLSTR
(
"name"
),
XMLSTR
(
auth
->
role
));
if
(
auth
->
role
)
xmlSetProp
(
role
,
XMLSTR
(
"name"
),
XMLSTR
(
auth
->
role
));
auth_release
(
auth
);
auth_stack_next
(
&
stack
);
}
...
...
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