opt: init test_ctx to 0.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 5 Jun 2012 12:31:29 +0000 (14:31 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 7 Jun 2012 20:13:59 +0000 (22:13 +0200)
Otherwise, setting string will try to free a random address.

libavutil/opt.c

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