From 832d6b684417271495ce6434417afbd42bf208a1 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Fri, 28 Apr 2006 18:51:22 +0200 Subject: [PATCH] conf2: allow :clear on string attributes --- lib/conf-intr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/conf-intr.c b/lib/conf-intr.c index 5895bd6b..0988f5b7 100644 --- a/lib/conf-intr.c +++ b/lib/conf-intr.c @@ -269,8 +269,11 @@ interpret_clear(struct cf_item *item, void *ptr) } else if (item->cls == CC_DYNAMIC) { cf_journal_block(ptr, sizeof(void *)); * (void**) ptr = NULL; + } else if (item->cls == CC_STATIC && item->type == CT_STRING) { + cf_journal_block(ptr, item->number * sizeof(byte*)); + bzero(ptr, item->number * sizeof(byte*)); } else - return "The item is not a list or a dynamic array"; + return "The item is not a list, dynamic array, or string"; return NULL; } -- 2.39.2