From 0d013609fe754dd065faf77297d8d5b1c93bb672 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 20 Jun 2014 09:03:41 -0700 Subject: [PATCH] Fix lineno count --- libraries/liblmdb/mdb_load.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c index 326e8e7..8ac21d4 100644 --- a/libraries/liblmdb/mdb_load.c +++ b/libraries/liblmdb/mdb_load.c @@ -150,6 +150,7 @@ static int readline(MDB_val *out, MDB_val *buf) return EOF; } if (c != ' ') { + lineno++; if (fgets(buf->mv_data, buf->mv_size, stdin) == NULL) { badend: eof = 1;