commit | 65719819c51612480a355267c160af56a37c01a9 | [log] [tgz] |
---|---|---|
author | Logan <tzuhsiang.chien@gmail.com> | Fri Jan 07 11:17:14 2011 +0800 |
committer | Logan <tzuhsiang.chien@gmail.com> | Fri Jan 07 11:17:14 2011 +0800 |
tree | 5f0a5170f5146737c22c48a160800f00f7537950 | |
parent | cc6da3fbb1196e6895e32e9e4b37a8e1d705c539 [diff] [blame] |
Fix Compiler::compile() return code. Fix some uninitialized variable.
diff --git a/lib/bcc/ScriptCompiled.h b/lib/bcc/ScriptCompiled.h index f676b3c..4d332b1 100644 --- a/lib/bcc/ScriptCompiled.h +++ b/lib/bcc/ScriptCompiled.h
@@ -59,7 +59,8 @@ char *mContext; // Context of BCC script (code and data) public: - ScriptCompiled(Script *owner) : mpOwner(owner), mCompiler(this) { + ScriptCompiled(Script *owner) + : mpOwner(owner), mCompiler(this), mContext(NULL) { } ~ScriptCompiled();