sys-file-writer: Omit empty multiple response sets records.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Jun 2011 05:16:44 +0000 (22:16 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Jun 2011 05:16:44 +0000 (22:16 -0700)
commitaafd3d71437306a0b89909dbc697b6241f5d2e7f
tree4d389424c00ae3d63b5bf900c4f3775cf2a4c282
parent395ce69d5ae119571907e58b061505b54bf32ed7
sys-file-writer: Omit empty multiple response sets records.

Multiple response sets are divided into two records in a .sav
file: one record with subtype 7 and one with subtype 19.  PSPP
was incorrectly writing both records even if one of them was
empty.  This commit makes it omit the empty record.

Thanks to Curt Reinhold <Curt.Reinhold@psychonomics.de> for
providing the .sav file that led to this discovery.
src/data/sys-file-writer.c