Fixes cppcheck.

Change-Id: I3324b7fa79581b96a542b889a21079c7202f935d
Reviewed-on: http://gerrit.aldebaran.lan/44669
Tested-by: gerrit
Approved: jlamotte <jlamotte@aldebaran.com>
Reviewed-by: jlamotte <jlamotte@aldebaran.com>