Fix lineno count

incre
Howard Chu 11 years ago
parent c05f45b7dd
commit 0d013609fe
  1. 1
      libraries/liblmdb/mdb_load.c

@ -150,6 +150,7 @@ static int readline(MDB_val *out, MDB_val *buf)
return EOF; return EOF;
} }
if (c != ' ') { if (c != ' ') {
lineno++;
if (fgets(buf->mv_data, buf->mv_size, stdin) == NULL) { if (fgets(buf->mv_data, buf->mv_size, stdin) == NULL) {
badend: badend:
eof = 1; eof = 1;

Loading…
Cancel
Save