OSDN Git Service
(root)
/
swfed
/
swfed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87fee9
)
swf_object_insert_action_setvariables: check tag_head == NULL
author
Yoshihiro Yamazaki
<yoya@awm.jp>
Thu, 3 Nov 2011 12:17:53 +0000
(21:17 +0900)
committer
Yoshihiro Yamazaki
<yoya@awm.jp>
Thu, 3 Nov 2011 12:17:53 +0000
(21:17 +0900)
src/swf_object.c
patch
|
blob
|
history
diff --git
a/src/swf_object.c
b/src/swf_object.c
index
6156395
..
39d9306
100755
(executable)
--- a/
src/swf_object.c
+++ b/
src/swf_object.c
@@
-1147,8
+1147,8
@@
swf_object_insert_action_setvariables(swf_object_t *swf,
swf_tag_t *tag, *prev = NULL;
swf_tag_t *action_tag = NULL, *prev_tag = NULL;
int ret, done = 0;
- if (
swf == NULL
) {
- fprintf(stderr, "swf_object_insert_action_setvariables: swf
==
NULL\n");
+ if (
(swf == NULL) || (swf->tag_head == NULL)
) {
+ fprintf(stderr, "swf_object_insert_action_setvariables: swf
or swf->tag_head is
NULL\n");
return 1; // NG
}
for (tag=swf->tag_head ; tag ; tag=tag->next) {