Fix easycsv_find_num_value

Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
This commit is contained in:
Pradana AUMARS 2021-07-17 13:43:25 +02:00
parent 042667e538
commit 679160e208

View File

@ -137,7 +137,7 @@ easycsv_find_num_value(const easycsv* csv,
const unsigned int rows = easycsv_print_rows(csv);
for (unsigned int row_l = 1; row_l <= rows; row_l++) {
for (unsigned int col_l = 1; col_l <= cols; col_l++) {
for (unsigned int col_l = 1; col_l < cols; col_l++) {
str = easycsv_read_value(csv, col_l, row_l);
if (strcmp(str, value) == 0) {
num++;