From 6448f15af02f2c3cf0df8cb8237957e426041f2d Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 8 Mar 2015 00:19:45 +0200 Subject: mxfdec: Fix the error handling for when strftime fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The str variable is a char ** here. Signed-off-by: Martin Storsjö --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mxfdec.c') diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 2b8bd8978a..563f0ed34f 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1736,7 +1736,7 @@ static int mxf_timestamp_to_str(uint64_t timestamp, char **str) if (!*str) return AVERROR(ENOMEM); if (!strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time)) - str[0] = '\0'; + (*str)[0] = '\0'; return 0; } -- cgit v1.2.3