Fix problem parsing configuration file if the last line is not empty
This commit is contained in:
parent
dfa6d07455
commit
2d7ffa37fe
@ -225,7 +225,6 @@ int file_read_lines(const char* file, void* data, file_line_handler_t handler)
|
|||||||
|
|
||||||
if (*start)
|
if (*start)
|
||||||
{
|
{
|
||||||
buf[strlen(start)] = 0;
|
|
||||||
LOG_DUMP("Line: %s", start);
|
LOG_DUMP("Line: %s", start);
|
||||||
if (handler(start, line_count+1, data) < 0)
|
if (handler(start, line_count+1, data) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user