This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/13231] setenv ("NAME", NULL) corrupts environment


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.


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