From fba89ddffff2fe50e3eebb708bf529bd2b1dafd2 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 13 Feb 2009 15:56:26 +0100 Subject: [PATCH] don't crash on zero abc_file during writing --- lib/as3/abc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/as3/abc.c b/lib/as3/abc.c index 30e5616..60ad6e7 100644 --- a/lib/as3/abc.c +++ b/lib/as3/abc.c @@ -933,6 +933,8 @@ static pool_t*writeABC(TAG*abctag, void*code, pool_t*pool) abc_file_t*file = (abc_file_t*)code; if(!pool) pool = pool_new(); + if(!file) + file = abc_file_new(); TAG*tmp = swf_InsertTag(0,0); TAG*tag = tmp; -- 1.7.10.4