py-machine-learning: Print CSV line numbers for invalid lines (SKLearn Random Forest Classificator).

* c-analysed: fix wrong length check

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2023-01-30 22:33:53 +01:00
parent 23816f1403
commit 4236aafa0d
2 changed files with 2 additions and 2 deletions

View File

@@ -148,7 +148,7 @@ static void csv_buf_add(csv_buf_t buf, size_t * const csv_buf_used, char const *
{
size_t len;
if (siz_len > 1 && str != NULL)
if (siz_len > 0 && str != NULL)
{
len = MIN(BUFFER_REMAINING(*csv_buf_used), siz_len);
if (len == 0)