[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hard-to-understand line in xfaces.c
From: |
Andrea Corallo |
Subject: |
Re: Hard-to-understand line in xfaces.c |
Date: |
Mon, 22 Jul 2024 10:35:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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. Only form the line I don't have the context of why is doing
that.
Andrea