Skip to content

Commit

Permalink
Fix actual logic
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodan-ilic committed Jun 15, 2024
1 parent 0a76076 commit 213a76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spss/readstat_sav_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ static readstat_error_t parse_mr_line(const char *line, mr_set_t *result) {
retval = READSTAT_ERROR_BAD_MR_STRING;
goto cleanup;

Check warning on line 233 in src/spss/readstat_sav_read.c

View check run for this annotation

Codecov / codecov/patch

src/spss/readstat_sav_read.c#L231-L233

Added lines #L231 - L233 were not covered by tests
}
char *endptr;
char *endptr = NULL;
size_t count = strtoul(digit_start, &endptr, 10);
if (endptr == digit_start || count == 0) {
if (endptr == digit_start) {
retval = READSTAT_ERROR_BAD_MR_STRING;
goto cleanup;

Check warning on line 239 in src/spss/readstat_sav_read.c

View check run for this annotation

Codecov / codecov/patch

src/spss/readstat_sav_read.c#L235-L239

Added lines #L235 - L239 were not covered by tests
}
Expand Down

0 comments on commit 213a76a

Please sign in to comment.