Re: Clear errno in spell.c

2025-03-08 Thread Tom Lane
Jacob Brazeal writes: > Several times in spell.c, we call strtol and then check the errno, but we > do not clear out errno = 0 before strtol, as is customary (and done > everywhere else in the codebase that I could find.) This could > hypothetically lead to us incorrectly logging an error. Yeah.

Clear errno in spell.c

2025-03-07 Thread Jacob Brazeal
Hello! Several times in spell.c, we call strtol and then check the errno, but we do not clear out errno = 0 before strtol, as is customary (and done everywhere else in the codebase that I could find.) This could hypothetically lead to us incorrectly logging an error. Regards, Jacob v1-errno.pat