memset in smatrix_cmap_init