[COVERITY] fix various coverity warnings
[COVERITY] fix various coverity warnings

Change-Id: I6610c170df98bafa8e9422d8909856d48e4171ce

Parrot-Developers/libARUpdater,Parrot-Developers/libARUpdater,Parrot-Developers/libARUpdater