Fixed cppcheck warning

Thanks to Xfce team to add xfdashboard to their Jenkins to find this warning :)