Clear errno in spell.c - Mailing list pgsql-hackers

From Jacob Brazeal
Subject Clear errno in spell.c
Date
Msg-id CA+COZaBhsq6EromFm+knMJfzK6nTpG23zJ+K2=nfUQQXcj_xcQ@mail.gmail.com
Whole thread Raw
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Matthias van de Meent
Date:
Subject: Re: Why doesn't GiST VACUUM require a super-exclusive lock, like nbtree VACUUM?