diff options
| -rw-r--r-- | csv.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -121,7 +121,7 @@ csv_string_reset(csv_string_t *csv_string) | |||
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | static inline int | 123 | static inline int |
| 124 | csv_string_empty(csv_string_t *csv_string) | 124 | csv_string_isempty(csv_string_t *csv_string) |
| 125 | { | 125 | { |
| 126 | assert(csv_string != NULL); | 126 | assert(csv_string != NULL); |
| 127 | 127 | ||
| @@ -444,7 +444,7 @@ csv_read(csv_t *csv, FILE *in) | |||
| 444 | return 0; | 444 | return 0; |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | if ( csv_string_empty(&csv->csv_string) ) { | 447 | if ( csv_string_isempty(&csv->csv_string) ) { |
| 448 | csv_cleanup(csv); | 448 | csv_cleanup(csv); |
| 449 | return 0; // EOF reached | 449 | return 0; // EOF reached |
| 450 | } | 450 | } |
| @@ -452,7 +452,7 @@ csv_read(csv_t *csv, FILE *in) | |||
| 452 | /* | 452 | /* |
| 453 | * The last data record was not terminated with a NEWLINE-Symbol. | 453 | * The last data record was not terminated with a NEWLINE-Symbol. |
| 454 | * So we can't signal End-Of-File for now. Terminate the current | 454 | * So we can't signal End-Of-File for now. Terminate the current |
| 455 | * field and return the numbor of fields processed so far. | 455 | * field and return the number of fields processed so far. |
| 456 | */ | 456 | */ |
| 457 | csv_string_append(&csv->csv_string, '\0', csv->csv_options); | 457 | csv_string_append(&csv->csv_string, '\0', csv->csv_options); |
| 458 | 458 | ||
