Re: branch-1_4: do not write in getenv result
Ralf Wildenhues <[email protected]>
| Newsgroups | gmane.comp.gnu.m4.patches |
|---|---|
| Message-ID | <[email protected]> |
Eric Blake <ebb9 <at> byu.net> writes: > Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de> writes: > > > > A small POSIX nit: the result of getenv may not be modified by the > > program. This nit was uncovered with the help of `splint'. > > Thanks; I'll apply it soon, and port it to head if needed. The patch I posted did not try to free a non-malloced pointer, unlike the one that was committed: $ M4PATH=/foo:/bar ./src/m4 Segmentation fault (core dumped)