Re: [PATCH 1/2] Fix <get-attachment> to use $tmpdraftdir.

Alejandro Colomar via Mutt-dev <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <ao1y7BVfH3P4Lr1d@devuan>
Hi Kevin,

> Date: 2026-08-25 18:00:24+0800
> From: "Kevin J. McCarthy" <[email protected]>
>
[...]
> diff --git a/rfc1524.c b/rfc1524.c
> index f1b13fc9..b14436c1 100644
> --- a/rfc1524.c
> +++ b/rfc1524.c
> @@ -494,9 +494,9 @@ int rfc1524_mailcap_lookup(BODY *a, char *type, size_t typelen, rfc1524_entry *e
>   * template and/or the old file name will be used for the
>   * comparison and the temporary file name.
>   */
> -void mutt_rfc1524_expand_filename(const char *nametemplate,
> -                                  const char *oldfile,
> -                                  BUFFER *newfile)
> +static void _rfc1524_expand_filename(const char *nametemplate,
> +                                     const char *oldfile,
> +                                     BUFFER *newfile)

It's technically undefined behavior to declare an identifier starting
with '_lowercase' in file scope.  (I ignore if we already have of those,
and thus this is just consistent with existing practice; also, it's
unlikely that glibc will define anything similar, so it should be fine.)

Feel free to ignore this comment.  :)


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmqNc6IACgkQ64mZXMKQ
wqmp+A/+MKsZcNCdo8/+g47n8hf4B7EvRmIEV3T7P0/P7RDqk5lFRbZz9k75/EE0
3QmA3cJ+/dw2M3kUBE0XuAtXE/107ZcTHxNP71L/8/Wtotud3iAkJuKdZYgXXZcN
MGP33EYvjc/6/yO+TLC1DIsMRm8rG4JwayLFGJD868aVPurxNetsntPZePCMLQaz
03Bz/eEM6mlCJaueS6sRA3PxyG2AXfv9bettSPp9k541VBI/mU4Nqbu09Ij9aP6o
9iNGM//WGSe7xT/SOvpITkY1w8WFrIJqMz9kab4FKFxu04df0yHzwZwAvBYtM9Rb
sCDcGYSyIYcvvXBJi/yniy7+kR0sfkMHDfDTo+Rx224WD2NFnWfrVsljOOu6hoAy
CnYZQ/404f4cf899rOH+z1zxbYB7C/NjF7x0jlDy+vsHqp3TUaUE/BC+U2giC2nQ
/I9T/AjgVfRZRVWY8vUSDufMzldliY2ukNwauDVwAEBVsaTODdEx5ljMNGg2jKNf
bRCvFUA3LMll03C003e12tC3o6prJ/eeOVRbmRS9plhDXnRKzAWQQ42TCU/leAk1
MKszEyAPZEKorpeUeXlRty8wcBrYzDwb/NGOmNxEMYJntKObhOPA6pEExoYFbaiL
TU65BSfUEhrjCkQVF1SWoIE2SBpmZW2Xf7KFLr+LhSO2rkqhk5I=
=egk/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.