git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made 'make install' install ruby module, too
[swftools.git]
/
lib
/
modules
/
swfaction.c
diff --git
a/lib/modules/swfaction.c
b/lib/modules/swfaction.c
index
9f44d4b
..
fb7474d
100644
(file)
--- a/
lib/modules/swfaction.c
+++ b/
lib/modules/swfaction.c
@@
-182,7
+182,6
@@
ActionTAG* swf_ActionGet(TAG*tag)
void swf_ActionFree(ActionTAG*action)
{
if(!action) {
void swf_ActionFree(ActionTAG*action)
{
if(!action) {
- fprintf(stderr, "Warning: freeing zero action");
return;
}
action = action->parent;
return;
}
action = action->parent;
@@
-208,6
+207,9
@@
void swf_ActionFree(ActionTAG*action)
void swf_ActionSet(TAG*tag, ActionTAG*action)
{
void swf_ActionSet(TAG*tag, ActionTAG*action)
{
+ if(!action) {
+ return;
+ }
action=action->parent;
while(action)
{
action=action->parent;
while(action)
{
@@
-969,7
+971,7
@@
ActionTAG* action_WaitForFrame(ActionTAG*atag, U16 frame, U8 skip)
*(U8*)&atag->tmp[2] = skip;
return atag;
}
*(U8*)&atag->tmp[2] = skip;
return atag;
}
-ActionTAG* action_SetTarget(ActionTAG*atag, char* target)
+ActionTAG* action_SetTarget(ActionTAG*atag, const char* target)
{
char*ptr = strdup(target);
return swf_AddActionTAG(atag, ACTION_SETTARGET, (U8*)ptr, strlen(ptr)+1);
{
char*ptr = strdup(target);
return swf_AddActionTAG(atag, ACTION_SETTARGET, (U8*)ptr, strlen(ptr)+1);