[FFmpeg-devel] [PATCH 1/3] opt: init test_ctx to 0.
Nicolas George
nicolas.george at normalesup.org
Tue Jun 5 14:54:13 CEST 2012
Otherwise, setting string will try to free a random address.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
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[] = {
"",
":",
--
1.7.10
More information about the ffmpeg-devel
mailing list