X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_acl.c;h=1d965c0e57d195f4251755072b3d8e250b2762a6;hp=4d047b7a240e9fb3454a12a6b931a60a39bd06ee;hb=f7f899d2d3e6278e81ace5b109f989c0d6eca561;hpb=7ec9b8dec77b969bfc860995f96fe91fd40ba5e4 diff --git a/ubusd_acl.c b/ubusd_acl.c index 4d047b7..1d965c0 100644 --- a/ubusd_acl.c +++ b/ubusd_acl.c @@ -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;