LVM2/lib/config config.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at 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
lib/config/config.c +2 -2
@@ -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 ("]" );