diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-12 08:05:49 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-12 08:05:49 +0000 |
commit | 3e3b1f6a969a4f7087da2afea2870c580146402a (patch) | |
tree | 8612342ac99174cb2cacd06ce73eb66726e739fa /plugins/MirLua/src/mlua_metatable.h | |
parent | 6df76366ce242536fd4e29fb4f225f07fba2a0ba (diff) |
MirLua: fix for metatable
git-svn-id: http://svn.miranda-ng.org/main/trunk@15713 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_metatable.h')
-rw-r--r-- | plugins/MirLua/src/mlua_metatable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index 2a11648420..108cf50f1a 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -28,7 +28,7 @@ private: template<typename R>
static R GetValue(const T *obj, size_t offset, size_t size)
{
- R res;
+ R res = NULL;
memcpy(&res, ((char*)obj) + offset, size);
return res;
}
|