diff options
author | Paul Gilbert | 2019-06-16 19:44:55 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-16 19:44:55 -0700 |
commit | 448bf3f4fba70faace65f2da2497f268a6f300b5 (patch) | |
tree | 5b94d428a55ea7030cfe4dd4874334246127c149 | |
parent | 9dde3e6131ac22ef0fcc9a63eba26ae07e08d2ba (diff) | |
download | scummvm-rg350-448bf3f4fba70faace65f2da2497f268a6f300b5.tar.gz scummvm-rg350-448bf3f4fba70faace65f2da2497f268a6f300b5.tar.bz2 scummvm-rg350-448bf3f4fba70faace65f2da2497f268a6f300b5.zip |
GLK: ADVSYS: Fix Coverity warnings
-rw-r--r-- | engines/glk/advsys/game.cpp | 4 | ||||
-rw-r--r-- | engines/glk/advsys/glk_interface.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/advsys/game.cpp b/engines/glk/advsys/game.cpp index 0465583f82..76aa4959ae 100644 --- a/engines/glk/advsys/game.cpp +++ b/engines/glk/advsys/game.cpp @@ -28,8 +28,8 @@ namespace Glk { namespace AdvSys { void Decrypter::decrypt(byte *data, size_t size) { - for (size_t idx = 0; idx < size; ++idx) - *data++ = ~(*data + 30); + for (size_t idx = 0; idx < size; ++idx, ++data) + *data = ~(*data + 30); } /*--------------------------------------------------------------------------*/ diff --git a/engines/glk/advsys/glk_interface.h b/engines/glk/advsys/glk_interface.h index 9e37207684..ae6b7a3743 100644 --- a/engines/glk/advsys/glk_interface.h +++ b/engines/glk/advsys/glk_interface.h @@ -65,7 +65,7 @@ public: * Constructor */ GlkInterface(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, gameDesc), - _saveSlot(-1) {} + _window(nullptr), _saveSlot(-1) {} }; } // End of namespace AdvSys |