ignore LENERR2 in seq_read()
authorPhilipp Takacs <philipp@bureaucracy.de>
Sat, 23 Apr 2016 18:48:45 +0000 (20:48 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 24 Apr 2016 10:24:21 +0000 (12:24 +0200)
this is unnecessary and brings problems because
sequences aren't created with a linecap.

sbr/seq_read.c

index 1fdccf9..041f632 100644 (file)
@@ -76,6 +76,9 @@ seq_public(struct msgs *mp)
        /* Use m_getfld to scan sequence file */
        for (state = FLD2;;) {
                switch (state = m_getfld2(state, &f, fp)) {
+               case LENERR2:
+                       state = FLD2;
+                       /* FALL */
                case FLD2:
                        seq_init(mp, mh_xstrdup(f.name), trimcpy(f.value));
                        continue;