Commit 951f41ad authored by Lukas Braun's avatar Lukas Braun Committed by Simon Ruderich
Browse files

slsm: print empty string if app is NULL

parent e13159c2
......@@ -239,7 +239,7 @@ ssize_t slsm_serialize_subtree(struct slsm_str *buf, struct slsm_str *path_buf,
for (i = 0; i < t->rules_used; i++) {
ret = slsm_str_append(buf, "p=%s%ca=%s%cm=%u%cf=%u%c",
path_buf->buf, '\0',
t->rules[i].app, '\0',
t->rules[i].app ? t->rules[i].app : "", '\0',
t->rules[i].perms.mode, '\0',
t->rules[i].perms.flags, '\0');
if (ret)
......
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