From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11115 invoked by alias); 19 Jul 2011 19:12:39 -0000 Received: (qmail 11098 invoked by uid 9699); 19 Jul 2011 19:12:38 -0000 Date: Tue, 19 Jul 2011 19:12:00 -0000 Message-ID: <20110719191238.11096.qmail@sourceware.org> From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/config config.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00042.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2011-07-19 19:12:38 Modified files: lib/config : config.c Log message: Make it possible to represent type-correct single-item arrays in config trees. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.99&r2=1.100 --- LVM2/lib/config/config.c 2011/07/19 19:11:24 1.99 +++ LVM2/lib/config/config.c 2011/07/19 19:12:38 1.100 @@ -486,11 +486,11 @@ line_append("="); if (v->next) { line_append("["); - while (v) { + while (v && v->type != CFG_EMPTY_ARRAY) { if (!_write_value(outline, v)) return_0; v = v->next; - if (v) + if (v && v->type != CFG_EMPTY_ARRAY) line_append(", "); } line_append("]");