[FFmpeg-devel] [PATCH] parseutils: replace setenv() by putenv().

Nicolas George nicolas.george at normalesup.org
Fri Apr 27 17:46:47 CEST 2012

Le nonidi 9 floréal, an CCXX, Reimar Döffinger a écrit :
> Note that the issue is not so much whether the libc will try
> to alter the string which is unlikely, it might be a user space
> application that tries to change it - since it is only in the test code
> that probably doesn't really matter though.

Yes, I would not have risked that in the library itself. Nor would I mess
with the environment, for that matter.

> But I guess a
> static char tzstr[] = "TZ...";
> probably is safest.

It looks nicer than the cast. I'll do that and push very soon. Thanks.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120427/4a72a5ca/attachment.asc>

More information about the ffmpeg-devel mailing list