libcommon: Fix build warnings (uninitialized variable access)