Skip to content
Snippets Groups Projects
Commit 9f598513 authored by Kirill Shcherbatov's avatar Kirill Shcherbatov Committed by Konstantin Osipov
Browse files

lua: fix invalid check in lbox_tuple_transform.

Tuple has been checked instead of new_tuple returned as
box_tuple_update result.
parent 4d9a4fdc
No related branches found
No related tags found
No related merge requests found
......@@ -412,7 +412,7 @@ lbox_tuple_transform(struct lua_State *L)
/* Execute tuple_update */
struct tuple *new_tuple =
box_tuple_update(tuple, buf->buf, buf->buf + ibuf_used(buf));
if (tuple == NULL)
if (new_tuple == NULL)
luaT_error(L);
/* box_tuple_update() doesn't leak on exception, see public API doc */
luaT_pushtuple(L, new_tuple);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment