Haiku - Fix an issue detected by PVS Studio
PVS is a static analysis tool to detect bugs and dubious programming practises in C++ software. The tool is not publicly available, but they have made a run on the Haiku code base and reported us all the issues they found.
The goal if this task is to examine one of the issues reported during this scan (http://pulkomandy.github.io/) and make a patch to resolve it. You will have to submit your patch to the Haiku bugtracker and mention the PVS issue number (in the "DefaultOrder" column of the list).
Issues marked in green are alerady resolved.
Issues marked in red are in code not written by Haiku, so if you decide to work on one of these, you will have to send your patch where the code wasoriginally developped. Not all issues which should be marked in red have been, so tell us which one you plan to work on before starting and we can make sure it is valid. Help tagging issues is also welcome.