fixes in swfstrings
[swftools.git] / lib / modules / swfobject.c
index ef6903e..36b66d4 100644 (file)
@@ -153,8 +153,10 @@ void swf_SetPlaceObject(TAG * t,SWFPLACEOBJECT* obj)
 
 void swf_GetPlaceObject(TAG * tag,SWFPLACEOBJECT* obj)
 {
-    if(!tag) {
+    if(obj)
        memset(obj, 0, sizeof(SWFPLACEOBJECT));
+
+    if(!tag) {
        swf_GetMatrix(0, &obj->matrix);
        swf_GetCXForm(0, &obj->cxform, 1);
        //obj->internal = PF_CHAR|PF_MATRIX|PF_CXFORM;