Fix cppcheck warning in previous changeset

Signed-off-by: amai2012 <amai@users.sf.net>