This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] nscd: avoid assertion failure during persistent db check
On Mai 15 2018, Florian Weimer <fweimer@redhat.com> wrote:
> On 05/15/2018 03:24 PM, Andreas Schwab wrote:
>> - assert (len >= 2);
>> + if (len < 2)
>> + return 0;
>
> Shouldn't it log a warning at least?
The caller does.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."