From 929568db07c0278cba9c37783481a35c59680d84 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk <roman@tsisyk.com> Date: Mon, 15 Jul 2013 18:07:04 +0400 Subject: [PATCH] Fix bool handling in tc_cmd_try Thanks for Anatol Pomozov --- client/tarantool/tc_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tarantool/tc_cli.c b/client/tarantool/tc_cli.c index b7255ef4c6..674e990716 100644 --- a/client/tarantool/tc_cli.c +++ b/client/tarantool/tc_cli.c @@ -237,7 +237,7 @@ tc_cmd_try(char *cmd, size_t size, int *reconnect) { enum tc_cli_cmd_ret rc = TC_CLI_OK; struct tnt_lex lex; - if (tnt_lex_init(&lex, tc_lex_keywords, (unsigned char*)cmd, size) == -1) + if (!tnt_lex_init(&lex, tc_lex_keywords, (unsigned char*)cmd, size)) return TC_CLI_ERROR; struct tnt_tk *tk; switch (tnt_lex(&lex, &tk)) { -- GitLab