From 838155179f599caeb127c3349b3f7a1bf3ac9f73 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 31 Oct 2014 15:38:53 +0100 Subject: [PATCH] fix backwards compatible code for at_permission. --- src/modules/gmcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/gmcmd.c b/src/modules/gmcmd.c index 9a5085ecf..d98ae9dbe 100644 --- a/src/modules/gmcmd.c +++ b/src/modules/gmcmd.c @@ -45,9 +45,9 @@ static int read_permissions(attrib * a, void *owner, struct storage *store) { - attrib *attr = NULL; - a_read(store, &attr, owner); - a_remove(&attr, a); + assert(!a); + a_read(store, &a, owner); + a_remove(&a, a); return AT_READ_OK; }