diff options
author | unknown <msvensson@neptunus.(none)> | 2006-10-03 23:11:47 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-10-03 23:11:47 +0200 |
commit | 14c2d195583136182ecde3b40c6b2f456c3b7b5a (patch) | |
tree | 9a0ba4bbe029a66705cce9f2e77cc7bad9f3e610 /client | |
parent | 807b9f94372208931802a5b836fa75aac5b82286 (diff) | |
download | mariadb-git-14c2d195583136182ecde3b40c6b2f456c3b7b5a.tar.gz |
Fix problem when both option SSL and COMPRESS specified
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index d057e7ea4f0..f52b4eafe15 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -2991,7 +2991,12 @@ void do_connect(struct st_command *command) con_options= ds_options.str; while (*con_options) { - char* end= con_options; + char* end; + /* Step past any spaces in beginning of option*/ + while (*con_options && my_isspace(charset_info, *con_options)) + con_options++; + /* Find end of this option */ + end= con_options; while (*end && !my_isspace(charset_info, *end)) end++; if (!strncmp(con_options, "SSL", 3)) |