Clear errno in spell.c

From: Jacob Brazeal <jacob(dot)brazeal(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Clear errno in spell.c
Date: 2025-03-08 02:55:55
Message-ID: CA+COZaBhsq6EromFm+knMJfzK6nTpG23zJ+K2=nfUQQXcj_xcQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
v1-errno.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2025-03-08 03:40:21 Re: Statistics Import and Export
Previous Message Matthias van de Meent 2025-03-08 02:36:31 Re: Why doesn't GiST VACUUM require a super-exclusive lock, like nbtree VACUUM?