[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9657: Don't try and print a method's
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9657: Don't try and print a method's body if the method doesn't have a body. |
Date: |
Tue, 11 Nov 2008 12:06:18 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9657
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Tue 2008-11-11 12:06:18 +0800
message:
Don't try and print a method's body if the method doesn't have a body.
modified:
libcore/asClass.cpp
=== modified file 'libcore/asClass.cpp'
--- a/libcore/asClass.cpp 2008-10-27 03:18:37 +0000
+++ b/libcore/asClass.cpp 2008-11-11 04:06:18 +0000
@@ -40,6 +40,10 @@
void
asMethod::print_body()
{
+ if(!mBody){
+ log_parse("Method has no body.");
+ return;
+ }
boost::uint8_t opcode;
std::stringstream ss;
ss << "Method Body: ";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9657: Don't try and print a method's body if the method doesn't have a body.,
Tom Stellard <=