From a7df512a8f744fc94023a13c42d85203509ace5a Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 28 Feb 2002 21:58:32 +0200 Subject: many fixes libmysql/libmysql.c: Fixes a very rare bug when variable name (without '_') and it's value are at the very end of the config file. I have tested it , but would liek little mobster to test it further mysql-test/r/union.result: results for union test that proves that EXPLAIN UNION bugs are fixed mysql-test/t/union.test: additional tests for EXPLAIN on UNION's that have previously failed sql/sql_yacc.yy: Some small fixes for newer parsers. Only unsigned int yystacksize remains to be fixed. This I leave to Monty. Present fixes are only aesthetic and do not harm. --- libmysql/libmysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmysql') 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 */ -- cgit v1.2.1