diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-08-31 15:49:55 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-08-31 15:49:55 +0000 |
commit | 937bfcdd9f5922b4043e4ed648d7877c541d54cb (patch) | |
tree | 806e04fe94ff8aa9182a1bb31c8bb0a853829432 /plugins/MirLua/src/m_database.cpp | |
parent | c4e939d79b82b195604e48e8d1b794da4c42347f (diff) |
MirLua:
- fixed memory corruption
git-svn-id: http://svn.miranda-ng.org/main/trunk@15127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_database.cpp')
-rw-r--r-- | plugins/MirLua/src/m_database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp index 537322d5f4..9454d87664 100644 --- a/plugins/MirLua/src/m_database.cpp +++ b/plugins/MirLua/src/m_database.cpp @@ -345,7 +345,7 @@ static int lua_AllSettings(lua_State *L) const char* szModule = luaL_checkstring(L, 1);
MCONTACT hContact = lua_tointeger(L, 2);
- enumDBSettingsParam* param = (enumDBSettingsParam*)mir_alloc(sizeof(enumDBSettingsParam*));
+ enumDBSettingsParam* param = (enumDBSettingsParam*)mir_alloc(sizeof(enumDBSettingsParam));
param->count = 0;
param->pszSettingName = NULL;
|