1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

- This to fix MDEV-7498. All changes made to AllocateValue to be sure that

the sp and p variable be initialised failed. Not understanding what causes
  this valgrind warning, I finally changed the way Mulval is allocated just
  to avoid it. This is a BAD solution as it does not really fix the problem
  but just hide it. This will have to be re-considered.
modified:
  storage/connect/tabjson.cpp
  storage/connect/value.cpp
This commit is contained in:
Olivier Bertrand
2015-01-23 21:54:29 +01:00
parent dc091a2935
commit 2cd36ad7d0
2 changed files with 14 additions and 9 deletions

View File

@@ -507,7 +507,15 @@ bool JSONCOL::ParseJpath(PGLOBAL g)
if (Parsed)
return false; // Already done
else if (InitValue(g))
if (InitValue(g))
return true;
else
MulVal = Value;
Value = NULL;
if (InitValue(g))
return true;
else if (!Jpath)
Jpath = Name;
@@ -540,7 +548,6 @@ bool JSONCOL::ParseJpath(PGLOBAL g)
} // endfor i, p
MulVal = AllocateValue(g, Value);
Parsed = true;
return false;
} // end of ParseJpath