diff options
author | msvensson@neptunus.(none) <> | 2006-10-07 19:47:42 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-10-07 19:47:42 +0200 |
commit | dedea59a6cd0184ab81beb232198c6f60ac42673 (patch) | |
tree | 59640a8013a060a99b7ee4ceabf0adb0ed02b97c /client | |
parent | 804d2effa254415fce10993b97817215b76663ce (diff) | |
download | mariadb-git-dedea59a6cd0184ab81beb232198c6f60ac42673.tar.gz |
Add comment and remove strange assignment in 'do_exec'
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index a9ac286aa88..b89c763de13 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -1498,6 +1498,7 @@ void do_exec(struct st_command *command) DBUG_ENTER("do_exec"); DBUG_PRINT("enter", ("cmd: '%s'", cmd)); + /* Skip leading space */ while (*cmd && my_isspace(charset_info, *cmd)) cmd++; if (!*cmd) @@ -1507,7 +1508,6 @@ void do_exec(struct st_command *command) init_dynamic_string(&ds_cmd, 0, command->query_len+256, 256); /* Eval the command, thus replacing all environment variables */ do_eval(&ds_cmd, cmd, command->end, TRUE); - cmd= ds_cmd.str; DBUG_PRINT("info", ("Executing '%s' as '%s'", command->first_argument, cmd)); |