bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strerror return value


From: Philipp Klaus Krause
Subject: strerror return value
Date: Wed, 14 Oct 2020 14:24:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

This is just a very minor issue.

texinfo contains two calls to strerror where the result is used to
initialize or assign to a char *. However, according to the strerror
specification, the string returned by strerror should never be changed,
so I think it would be better to use const char * instead.

Besides these two, there are further such calls in texinfo via in
gnulib. I guess texinfo doesn't want to diverge from the gnulib version
that was once pulled in over this issue (and upstream gnulib has fixed
them by now anyway, so the problematic use in texinfo will disappear by
itself sometime a newer gnulib is pulled in).

Philipp

Attachment: texinfo-strerror-const.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]