fixed a potential segfault
authorkramm <kramm>
Mon, 13 Oct 2008 14:05:55 +0000 (14:05 +0000)
committerkramm <kramm>
Mon, 13 Oct 2008 14:05:55 +0000 (14:05 +0000)
src/swfc.c

index 377b531..2db2d10 100644 (file)
@@ -923,7 +923,7 @@ static void writeInstance(instance_t* i)
     while (frame < currentframe)
     {
         frame++;
-        while (tag->id != ST_SHOWFRAME)
+        while (tag && tag->id != ST_SHOWFRAME)
             tag = tag->next;
         if (parametersChange(i->history, frame))
         {