1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixes to avoid errors from valgrind

Fixed problem with 'wrong packet number' in union
This commit is contained in:
monty@narttu.mysql.fi
2003-03-18 11:17:48 +02:00
parent 5dd970c335
commit a916a03916
7 changed files with 55 additions and 22 deletions

View File

@ -732,7 +732,17 @@ double my_strntod_8bit(CHARSET_INFO *cs __attribute__((unused)),
double result;
errno= 0; /* Safety */
/*
The following define is to avoid warnings from valgrind as str[length]
may not be defined (which is not fatal in real life)
*/
#ifdef HAVE_purify
if (length == INT_MAX32)
#else
if (length == INT_MAX32 || str[length] == 0)
#endif
result= strtod(str, end);
else
{