]> git.sur5r.net Git - openldap/commitdiff
Fix lineno count
authorHoward Chu <hyc@symas.com>
Fri, 20 Jun 2014 16:03:41 +0000 (09:03 -0700)
committerHoward Chu <hyc@symas.com>
Fri, 20 Jun 2014 16:03:41 +0000 (09:03 -0700)
libraries/liblmdb/mdb_load.c

index 326e8e78a7daee42277ecf50276aa6fbe6ae7ba4..8ac21d41fd158057cc65d83933ca41e1f71b8118 100644 (file)
@@ -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;