Date: Thu, 27 Jan 2000 08:12:04 -0800 (PST) From: Ruslan Ermilov <ru@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib setenv.c Message-ID: <200001271612.IAA35112@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ru 2000/01/27 08:12:04 PST
Modified files:
lib/libc/stdlib setenv.c
Log:
o Back out rev 1.4 - reallocf() failure clobbers existing `environ'.
o Do not override `environ' if realloc() fails, leave it intact.
o Set `alloced' only when memory is actually allocated.
PR: bin/5604 (2nd part)
Reviewed by: bde
Revision Changes Path
1.5 +8 -3 src/lib/libc/stdlib/setenv.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001271612.IAA35112>
