Commit fb088de5 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: only export name="" on <role> if set

parent 4c429ab0
......@@ -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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment