From: Matthias Kramm Date: Fri, 13 Feb 2009 14:56:26 +0000 (+0100) Subject: don't crash on zero abc_file during writing X-Git-Tag: release-0-9-0~107 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=fba89ddffff2fe50e3eebb708bf529bd2b1dafd2;p=swftools.git don't crash on zero abc_file during writing --- 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;