Re: psql \watch 2nd argument: iteration count - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: psql \watch 2nd argument: iteration count
Date
Msg-id ZBF6uZQCKmfiRtXD@paquier.xyz
Whole thread Raw
In response to Re: psql \watch 2nd argument: iteration count  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: psql \watch 2nd argument: iteration count  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Tue, Mar 14, 2023 at 09:23:48PM -0700, Nathan Bossart wrote:
> +            sleep = strtod(opt, &opt_end);
> +            if (sleep < 0 || *opt_end || errno == ERANGE)
>
> Should we set errno to 0 before calling strtod()?

Yep.  You are right.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pkg-config Requires.private entries should be comma-separated
Next
From: Alexander Lakhin
Date:
Subject: Re: windows CI failing PMSignalState->PMChildFlags[slot] == PM_CHILD_ASSIGNED