[PATCH] Do not strcat to result of getenv.

Martin Liška mliska@suse.cz
Fri Mar 13 12:48:18 GMT 2020


On 3/13/20 1:39 PM, Jakub Jelinek wrote:
>        collect_gcc_options = concat (collect_gcc_options,
> 				    xassembler_opts_string, NULL);
> instead?

Ah, I forgot that concat is available here. I would choose
this way, even though it's a small memory leak.

I'm going to install the patch.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-strcat-to-result-of-getenv.patch
Type: text/x-patch
Size: 1789 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200313/73a086a3/attachment.bin>


More information about the Gcc-patches mailing list