This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13231] setenv ("NAME", NULL) corrupts environment
- From: "ldv at altlinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 29 Oct 2011 23:17:07 +0000
- Subject: [Bug libc/13231] setenv ("NAME", NULL) corrupts environment
- Auto-submitted: auto-generated
- References: <bug-13231-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13231
--- Comment #4 from Dmitry V. Levin <ldv at altlinux dot org> 2011-10-29 23:17:07 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > Could you please consider changing this line then:
>
> No, this would require unnecessary other changes.
Since "value" and "combined" cannot be non-NULL altogether, the change is not
going to be so tremendous:
- const size_t vallen = value != NULL ? strlen (value) + 1 : 0;
+ const size_t vallen = combined == NULL ? strlen (value) + 1 : 0;
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.