fix compiler warning about ast_copy_string