summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-03-06 22:12:08 +0200
committerunknown <monty@hundin.mysql.fi>2002-03-06 22:12:08 +0200
commit749246cc2933b6fd74dd8c171de52d87d7bd75bd (patch)
tree35c61fb9483cbe657cb2209e53f24c6366e93f3e /libmysql
parentb707a1ab6b3e1c1fed2570f91da0e22715542493 (diff)
downloadmariadb-git-749246cc2933b6fd74dd8c171de52d87d7bd75bd.tar.gz
Portability fixes
Fix bug when using option groups libmysql/libmysql.c: Fix bug when using option groups myisam/myisamchk.c: Portability fix mysys/my_getopt.c: Portability fix
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 2fecbe1c66f..8c412f88ac7 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -737,7 +737,7 @@ static void mysql_read_default_options(struct st_mysql_options *options,
*end=0; /* Remove '=' */
}
/* Change all '_' in variable name to '-' */
- for (end= *option ; (end= strcend(end,'_')) && *end ; )
+ for (end= *option ; *(end= strcend(end,'_')) ; )
*end= '-';
switch (find_type(*option+2,&option_types,2)) {
case 1: /* port */