warning: fix 'fw_minor' may be used uninitialized in this function [-Wmaybe-uninitialized]