summaryrefslogtreecommitdiff
path: root/csv-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'csv-test.c')
-rw-r--r--csv-test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/csv-test.c b/csv-test.c
index b2d210a..15d868c 100644
--- a/csv-test.c
+++ b/csv-test.c
@@ -10,10 +10,9 @@ static int
10test(FILE *f) 10test(FILE *f)
11{ 11{
12 int line = 0; 12 int line = 0;
13 csv_t csv[1]; 13 csv_t csv = { 0 };
14 14
15 csv_init(csv); 15 while ( csv_read(&csv, f) != -1 ) {
16 for ( int n; (n = csv_read(csv, f)) != -1; ) {
17 ++line; 16 ++line;
18 } 17 }
19 18