diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-02-28 22:01:41 +0200 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-02-28 22:01:41 +0200 |
commit | f739974c5e5b4dbf68c5000b8231f554d9ffd40d (patch) | |
tree | ead290526a05fa8ce4157fb5a3448811d0e7a83f /libmysql | |
parent | ba288f41edd4cb5f98a175873b921c1eb3b00b12 (diff) | |
download | mariadb-git-f739974c5e5b4dbf68c5000b8231f554d9ffd40d.tar.gz |
Porting from mysql-4.0.
Read comments there if you are interested ..
BitKeeper/etc/ignore:
Added sql/sql_yacc.yy.orig to the ignore list
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 32aa8e59888..4e4518bbe10 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,'_')) ; ) + for (end= *option ; (end= strcend(end,'_')) && *end ; ) *end= '-'; switch (find_type(*option+2,&option_types,2)) { case 1: /* port */ |