system: fix uninitialized variables in firmware validation code