Skip to content

Commit 415048e

Browse files
committed
Cleanup read row after printing
1 parent ad9d8c0 commit 415048e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csv-to-json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ if read_csv_fields FIELDS; then
7171

7272
read_csv_fields VALUES
7373
print_row
74-
74+
VALUES=()
7575
while read_csv_fields VALUES; do
7676
printf ','
7777
print_row
78+
VALUES=()
7879
done
7980
printf ']\n'
8081
else

0 commit comments

Comments
 (0)