Fix crash in Website::getGames
authorSude <lgogdownloader@gmail.com>
Thu, 19 Jan 2017 22:15:50 +0000 (00:15 +0200)
committerStephen Kitt <skitt@debian.org>
Wed, 5 Apr 2017 17:27:13 +0000 (18:27 +0100)
commit03223445c1e51279aaf7e93aaa1c14864d7df5d8
tree6f42ecf075072c735e53bff63823cd4e58fd2ceb
parent981fe47b929d77f66b1fb1529d3f1374c1f1c337
Fix crash in Website::getGames

JSON value for updates can be null in some cases. For example when user owns a dlc but not the base game.
This caused a crash due to std::stoi throwing std::invalid_argument exception

Origin: upstream, 3.2, commit:22f47de4fcd8cd7ecc2a89fbb25f94efb1b3f743

Gbp-Pq: Name Fix-crash-in-Website-getGames.patch
src/website.cpp