Core/Misc: Fix static analysis issues
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore
Merge branch 'master' of https://github.com/TrueWoW/TrinityCore