aboutsummaryrefslogtreecommitdiff
path: root/csv.c
diff options
context:
space:
mode:
Diffstat (limited to 'csv.c')
-rw-r--r--csv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/csv.c b/csv.c
index 1ef0bde..e9c7464 100644
--- a/csv.c
+++ b/csv.c
@@ -260,7 +260,7 @@ csv_field(const csv_t *const csv, size_t idx)
260 assert(csv != NULL); 260 assert(csv != NULL);
261 assert(idx >= 0 && idx < csv->csv_field.pos); 261 assert(idx >= 0 && idx < csv->csv_field.pos);
262 262
263 if ( idx < 0 || idx >= csv->csv_field.pos ) { 263 if ( idx >= csv->csv_field.pos ) {
264 csv_fatal_error(CSV_ERR_OUT_OF_RANGE, csv->csv_options); 264 csv_fatal_error(CSV_ERR_OUT_OF_RANGE, csv->csv_options);
265 return NULL; 265 return NULL;
266 } 266 }