[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hard-to-understand line in xfaces.c
From: |
Stefan Kangas |
Subject: |
Re: Hard-to-understand line in xfaces.c |
Date: |
Mon, 22 Jul 2024 08:55:52 -0700 |
Andrea Corallo <acorallo@gnu.org> writes:
> Stefan Kangas <stefankangas@gmail.com> writes:
>
>> Could someone explain this line in xfaces.c:7184?
>>
>> len -= 0 < len && name[len - 1] == '\n';
>>
>> It seems rather mysterious to me; for example, does it actually do
>> anything?
>
> If len is greater than zero and name[len - 1] is '\n' then is decreasing
> len by one.
Doh! Thanks for clearing it up for me.