Better lvar name.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1461307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-03-26 20:52:28 +00:00
parent 78d7055f71
commit 4c530ac40d
1 changed files with 3 additions and 3 deletions

View File

@ -251,9 +251,9 @@ public class CSVParser implements Iterable<CSVRecord> {
String[] header = null;
if (format.getHeader().length == 0) {
// read the header from the first line of the file
final CSVRecord rec = nextRecord();
if (rec != null) {
header = rec.values();
final CSVRecord record = nextRecord();
if (record != null) {
header = record.values();
}
} else {
header = format.getHeader();