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

- fix use of uninitialized variable (colp)

modified:
  storage/connect/tabtbl.cpp
  storage/connect/tabutil.cpp
This commit is contained in:
Olivier Bertrand
2013-05-13 11:37:34 +02:00
parent 35f813143b
commit dee955bdee
2 changed files with 8 additions and 8 deletions

View File

@ -531,8 +531,12 @@ bool PRXCOL::Init(PGLOBAL g)
Colp = tdbp->Tdbp->ColDB(g, NULL, Colnum);
if (Colp) {
Colp->InitValue(g); // May not have been done elsewhere
// May not have been done elsewhere
Colp->InitValue(g);
To_Val = Colp->GetValue();
// this may be needed by some tables (which?)
Colp->SetColUse(ColUse);
} else {
sprintf(g->Message, MSG(NO_MATCHING_COL), Name, tdbp->Tdbp->GetName());
return TRUE;