]> mj.ucw.cz Git - xsv.git/commitdiff
Fixed bug introduced by re-ordering of the header
authorMartin Mares <mj@ucw.cz>
Tue, 24 Jul 2012 15:22:18 +0000 (17:22 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 24 Jul 2012 15:22:18 +0000 (17:22 +0200)
xsv.c

diff --git a/xsv.c b/xsv.c
index 4615d708dadc869542510462f0f8b4d0b660c9d3..58e777ef3c18656b4747a838c39a9a38e5cda52f 100644 (file)
--- a/xsv.c
+++ b/xsv.c
@@ -639,6 +639,7 @@ static void write_header(void)
                }
        }
 
+       fields_reset(&out_fields);
        if (want_select_fields)
                select_fields();
        else