[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid use of const pointer?
From: |
Paul Smith |
Subject: |
Re: Invalid use of const pointer? |
Date: |
Sat, 08 Jan 2022 17:29:33 -0500 |
User-agent: |
Evolution 3.36.5-0ubuntu1 |
On Sat, 2022-01-08 at 22:34 +0100, Henrik Carlqvist wrote:
> But what about the case marked with <--X above? To me it seems as if
> the function returns after having modified const char *name bu using
> userend.
You're right, that's wrong.
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.
Thanks for noticing!
- Invalid use of const pointer?, Joe Filion, 2022/01/07
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/08
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/08
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/08
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/08
- Re: Invalid use of const pointer?,
Paul Smith <=
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/09
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/09
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/09
- Re: Invalid use of const pointer?, Edward Welbourne, 2022/01/11
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/11
- RE: Invalid use of const pointer?, Joe Filion, 2022/01/09
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/17
- Re: Invalid use of const pointer?, Jon Forrest, 2022/01/17
- RE: Invalid use of const pointer?, Joe Filion, 2022/01/18
- Re: Invalid use of const pointer?, Jon Forrest, 2022/01/18