Re: [PATCH 1/1] Fix date checking in case if time was not initialized.
- From
Mike Gorchak <mike.gorchak.qnx@gmail.com>
- Date
- Feb 26, 2013, 18:58 UTC
- Message-ID
- <CAHXAxrM=X9q_65VcVkc+1JQk9QCjvGi1rFhEDcPN27S9ed7yMA@mail.gmail.com>
- In-Reply-To
- <7v4nh0oxnv.fsf@alter.siamese.dyndns.org>
> The test does _not_ fail. That if condition does return -1 on Linux > and BSD, and making tm_to_time_t() return a failure, but the caller > goes on, ending up with the right values in year/month/date in the > tm struct, which is the primary thing the function is used for.
I said it wrong, test itself is not failed, but numerous is_date() checks are failed due to incomplete time.