static void qapi_clone_type_str(Visitor *v, const char *name, char **obj,

                                 Error **errp)

{

    QapiCloneVisitor *qcv = to_qcv(v);



    assert(qcv->depth);

    /*

     * Pointer was already cloned by g_memdup; create fresh copy.

     * Note that as long as qmp-output-visitor accepts NULL instead of

     * "", then we must do likewise. However, we want to obey the

     * input visitor semantics of never producing NULL when the empty

     * string is intended.

     */

    *obj = g_strdup(*obj ?: "");

}

static void qapi_clone_type_str(Visitor *v, const char *name, char **obj,

                                 Error **errp)

{

    QapiCloneVisitor *qcv = to_qcv(v);



    assert(qcv->depth);

    













    *obj = g_strdup(*obj ?: "");

}

static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,

                                 Error **VAR_3)

{

    QapiCloneVisitor *qcv = to_qcv(VAR_0);



    assert(qcv->depth);

    













    *VAR_2 = g_strdup(*VAR_2 ?: "");

}

static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,
Error **VAR_3)
{ QapiCloneVisitor *qcv = to_qcv(VAR_0); assert(qcv->depth); *VAR_2 = g_strdup(*VAR_2 ?: ""); }