[Top][All Lists]

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

Re: Invalid use of const pointer?

From: Henrik Carlqvist
Subject: Re: Invalid use of const pointer?
Date: Sun, 9 Jan 2022 11:06:27 +0100

On Sat, 08 Jan 2022 17:29:33 -0500
Paul Smith <psmith@gnu.org> wrote:
> It turns out to be innocuous because none of the callers care that the
> value of the input string is modified if we return a different string,
> but it's still wrong and should be fixed.

If so, the easy and more correct fix might be to to remove const from the
function variable declarations rather than to restore the value.

> Thanks for noticing!

This Thanks mostly goes to Joe Filion who initally noticed this.

Best regards Henrik

reply via email to

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