diff --git a/CMakeLists.txt b/CMakeLists.txt index b5177ac..bb635f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/include/ss/parser.hpp b/include/ss/parser.hpp index 31907fe..3a4244b 100644 --- a/include/ss/parser.hpp +++ b/include/ss/parser.hpp @@ -167,7 +167,7 @@ public: return; } - if (header_.empty()) { + if (header_.empty() && !eof()) { split_header_data(); } diff --git a/meson.build b/meson.build index 18d0918..a4880dd 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/ssp.hpp b/ssp.hpp index cb0bc2e..d66e595 100644 --- a/ssp.hpp +++ b/ssp.hpp @@ -2281,7 +2281,7 @@ public: return; } - if (header_.empty()) { + if (header_.empty() && !eof()) { split_header_data(); }