tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] libtcc.c (put_extern_sym2): Extend the scope


From: David Mertens
Subject: Re: [Tinycc-devel] [PATCH] libtcc.c (put_extern_sym2): Extend the scope of buf to match its use
Date: Thu, 18 Dec 2014 20:00:02 -0500

Good catch. I'm not closely acquainted with this particular section of code, but your observation looks correct to me, and the fix looks right.

On Mon, Dec 15, 2014 at 3:42 AM, Lee Duhem <address@hidden> wrote:
Hi,

In `put_extern_sym2', after leaving the code block that `buf' is
defined, `buf' will not
exist, so `name' will point to a variable that does not exist. This
patch fixes that.

Any comment?

Sincerely,
lee

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel



--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

reply via email to

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