diff --git a/src/server/aux-items.c b/src/server/aux-items.c index af0f2ef907b8f6c451803aefb8a2423258afc215..71ff14cff6b853da0a2022dc4a9e645eabd9fd01 100644 --- a/src/server/aux-items.c +++ b/src/server/aux-items.c @@ -1,5 +1,5 @@ /* - * $Id: aux-items.c,v 1.20 1999/06/26 11:36:28 ceder Exp $ + * $Id: aux-items.c,v 1.21 1999/06/26 11:55:34 ceder Exp $ * Copyright (C) 1994-1999 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -1062,7 +1062,8 @@ aux_item_add_perm(Aux_item *item, kom_errno = KOM_NO_ERROR; - def = def ? def : def = find_aux_item_definition(item); + if (def == NULL) + def = find_aux_item_definition(item); /* Can't create an item with no definition */