Skip to content

Commit

Permalink
Merge pull request #32 from red0124/bugfix/header_usage_on_empty_file
Browse files Browse the repository at this point in the history
Bugfix/header usage on empty file
  • Loading branch information
red0124 authored Feb 17, 2024
2 parents 4bedc32 + c05ab35 commit fdd153b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14)

project(
ssp
VERSION 1.6.1
VERSION 1.6.2
DESCRIPTION "csv parser"
HOMEPAGE_URL "https://github.com/red0124/ssp"
LANGUAGES CXX
Expand Down
2 changes: 1 addition & 1 deletion include/ss/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class parser {
return;
}

if (header_.empty()) {
if (header_.empty() && !eof()) {
split_header_data();
}

Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(
'cpp_std=c++17',
'buildtype=debugoptimized',
'wrap_mode=forcefallback'],
version: '1.6.1',
version: '1.6.2',
meson_version:'>=0.54.0')

fast_float_dep = dependency('fast_float')
Expand Down
2 changes: 1 addition & 1 deletion ssp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,7 @@ class parser {
return;
}

if (header_.empty()) {
if (header_.empty() && !eof()) {
split_header_data();
}

Expand Down

0 comments on commit fdd153b

Please sign in to comment.