fix a possible crash on get_cb_real_name

Signed-off-by: xiehuc <xiehuc@gmail.com>