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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Apr 27 17:30:58 CEST 2012

On Fri, Apr 27, 2012 at 03:25:10PM +0200, Nicolas George wrote:
> putenv() seems to be more portable.
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavutil/parseutils.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> The cast is necessary to avoid a warning, since putenv's argument is not
> const.

It probably doesn't matter much in reality, but the reason for that is
that the string is directly integrated into the environment and that
consists of modifiable strings.
So it isn't really correct to pass a string constant I believe.

More information about the ffmpeg-devel mailing list