unbreak acl allocation

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin 2015-09-22 06:12:08 +02:00
parent 7ec9b8dec7
commit f7f899d2d3

View file

@ -206,7 +206,7 @@ ubusd_acl_alloc_obj(struct ubusd_acl_file *file, const char *obj)
struct ubusd_acl_obj *o;
char *k;
o = calloc_a(1, sizeof(*o), &k, strlen(obj) + 1);
o = calloc_a(sizeof(*o), &k, strlen(obj) + 1);
o->user = file->user;
o->group = file->group;
o->avl.key = k;