Skip to content
Snippets Groups Projects
Commit 929568db authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix bool handling in tc_cmd_try

Thanks for Anatol Pomozov
parent 2721b8b6
No related branches found
No related tags found
No related merge requests found
...@@ -237,7 +237,7 @@ tc_cmd_try(char *cmd, size_t size, int *reconnect) ...@@ -237,7 +237,7 @@ tc_cmd_try(char *cmd, size_t size, int *reconnect)
{ {
enum tc_cli_cmd_ret rc = TC_CLI_OK; enum tc_cli_cmd_ret rc = TC_CLI_OK;
struct tnt_lex lex; 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; return TC_CLI_ERROR;
struct tnt_tk *tk; struct tnt_tk *tk;
switch (tnt_lex(&lex, &tk)) { switch (tnt_lex(&lex, &tk)) {
......
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