to be sure, initialize arch_init[] with NULL
nullify handle when cs_open() fails. besides, return CS_ERR_ARCH when arch is unsupported