[tarantool-patches] Re: [PATCH v4 6/8] sql: refactor AST trigger object name

Kirill Shcherbatov kshcherbatov at tarantool.org
Wed Jun 27 21:04:40 MSK 2018


> I mean not all of these variables are initialised. For example, you can move
-       /* Name of trigger. */
-       char *trigger_name;
        /* SQL text. */
        char *sql_str = NULL;
        /* MsgPack containing SQL options. */
@@ -190,7 +188,7 @@ sql_trigger_finish(struct Parse *parse, struct TriggerStep *step_list,
        parse->parsed_ast.trigger = NULL;
        if (NEVER(parse->nErr) || trigger == NULL)
                goto triggerfinish_cleanup;
-       trigger_name = trigger->zName;
+       char *trigger_name = trigger->zName;

Ok, as you wish.




More information about the Tarantool-patches mailing list