https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125087

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to anlauf from comment #4)
> Created attachment 64378 [details]
> Draft patch
> 
> Potential plain C solution.  (Pass-by-reference in C++ would be simpler...)

Applies and tests OK. If it passes the static analyser cppcheck its OK by me.

Reply via email to