From 42b774ab6f45f755d0a1ee1464c415a93326736a Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Tue, 5 Jun 2012 14:31:29 +0200 Subject: opt: init test_ctx to 0. Otherwise, setting string will try to free a random address. --- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index f59bad352f..9af3fe47cb 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[] = { "", ":", -- cgit v1.2.3