diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-27 15:12:52 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-27 18:16:04 +0200 |
commit | 3e1d3ebf5e1ce96675a7ec692524b96a1aaed5dd (patch) | |
tree | c1632440a7f5d2511797f191a202a2314ac09592 /libavutil/parseutils.c | |
parent | dcfc12e86acbacbf50ee87d8e66ec44584d119f4 (diff) | |
download | ffmpeg-3e1d3ebf5e1ce96675a7ec692524b96a1aaed5dd.tar.gz |
parseutils: replace setenv() by putenv().
putenv() seems to be more portable.
Diffstat (limited to 'libavutil/parseutils.c')
-rw-r--r-- | libavutil/parseutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c index 037c4fb9f6..de510caee2 100644 --- a/libavutil/parseutils.c +++ b/libavutil/parseutils.c @@ -789,6 +789,7 @@ int main(void) int64_t tv; time_t tvi; struct tm *tm; + static char tzstr[] = "TZ=CET-1"; const char *time_string[] = { "now", "12:35:46", @@ -804,7 +805,7 @@ int main(void) }; av_log_set_level(AV_LOG_DEBUG); - setenv("TZ", "CET-1", 1); + putenv(tzstr); printf("(now is 2012-03-17 09:14:13 +0100, local time is UTC+1)\n"); for (i = 0; i < FF_ARRAY_ELEMS(time_string); i++) { printf("%-24s -> ", time_string[i]); |