opkg: fix error message reporting caused by an uninitialized variable