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 a7b36ea
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;
}
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;
}
Expand Down

0 comments on commit a7b36ea

Please sign in to comment.