
11 Jan
2012
11 Jan
'12
2:26 a.m.
On Tuesday 10 January 2012 18:48:12 Doug Anderson wrote:
On Tue, Jan 10, 2012 at 3:44 PM, Mike Frysinger vapier@gentoo.org wrote:
On Tuesday 10 January 2012 18:38:07 Doug Anderson wrote: getenv returns a writable buffer, so i wonder if things couldn't be avoided easily all around. after all, you're just deleting bytes here, not adding new ones.
Actually, that's not quite true. The current code will add "console=" in the case that it finds no console argument.
true ... we could still relegate the strdup/free to that step ... -mike