cppcheck: fix unreadVariable
Merge pull request #98 from toxeus/fixUnreadVariable

cppcheck: fix unreadVariable