This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Potential memory leak in argz_replace.c


On 01/06/15 09:10, Corinna Vinschen wrote:
Thanks but, uhm, that didn't quite work out:

   libc/argz/argz_replace.c: In function âargz_replaceâ:
   libc/argz/argz_replace.c:75:26: error: assignment makes integer from pointer without a cast [-Werror]
	 if(!(*argz_realloc = (char *)realloc(*argz, new_argz_len)))
			    ^
   libc/argz/argz_replace.c:80:12: error: assignment from incompatible pointer type [-Werror]
	 argz = argz_realloc;
	      ^
   cc1: all warnings being treated as errors

I fixed that and applied the patch.

Oh my, that's embarrassing! Thanks for fixing.

Dave.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]