[FFmpeg-cvslog] opt: init test_ctx to 0.

Nicolas George git at videolan.org
Thu Jun 7 22:26:22 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Jun  5 14:31:29 2012 +0200| [42b774ab6f45f755d0a1ee1464c415a93326736a] | committer: Nicolas George

opt: init test_ctx to 0.

Otherwise, setting string will try to free a random address.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=42b774ab6f45f755d0a1ee1464c415a93326736a
---

 libavutil/opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index f59bad3..9af3fe4 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -927,7 +927,7 @@ int main(void)
 
     printf("\nTesting av_set_options_string()\n");
     {
-        TestContext test_ctx;
+        TestContext test_ctx = { 0 };
         const char *options[] = {
             "",
             ":",



More information about the ffmpeg-cvslog mailing list