Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dee955bd
Commit
dee955bd
authored
May 13, 2013
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix use of uninitialized variable (colp)
modified: storage/connect/tabtbl.cpp storage/connect/tabutil.cpp
parent
35f81314
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
storage/connect/tabtbl.cpp
storage/connect/tabtbl.cpp
+3
-7
storage/connect/tabutil.cpp
storage/connect/tabutil.cpp
+5
-1
No files found.
storage/connect/tabtbl.cpp
View file @
dee955bd
...
@@ -239,14 +239,10 @@ bool TDBTBL::InitTableList(PGLOBAL g)
...
@@ -239,14 +239,10 @@ bool TDBTBL::InitTableList(PGLOBAL g)
// We must allocate subtable columns before GetMaxSize is called
// We must allocate subtable columns before GetMaxSize is called
// because some (PLG, ODBC?) need to have their columns attached.
// because some (PLG, ODBC?) need to have their columns attached.
// Real initialization will be done later.
// Real initialization will be done later.
for
(
PCOL
cp
=
Columns
;
cp
;
cp
=
c
p
->
GetNext
())
for
(
colp
=
Columns
;
colp
;
colp
=
col
p
->
GetNext
())
if
(
!
c
p
->
IsSpecial
())
{
if
(
!
c
olp
->
IsSpecial
())
if
(((
PPRXCOL
)
cp
)
->
Init
(
g
)
&&
!
Accept
)
if
(((
PPRXCOL
)
c
ol
p
)
->
Init
(
g
)
&&
!
Accept
)
return
TRUE
;
return
TRUE
;
else
// this is needed by some tables (which?)
colp
->
SetColUse
(
cp
->
GetColUse
());
}
// endif !special
if
(
Tablist
)
if
(
Tablist
)
Tablist
->
Link
(
tabp
);
Tablist
->
Link
(
tabp
);
...
...
storage/connect/tabutil.cpp
View file @
dee955bd
...
@@ -531,8 +531,12 @@ bool PRXCOL::Init(PGLOBAL g)
...
@@ -531,8 +531,12 @@ bool PRXCOL::Init(PGLOBAL g)
Colp
=
tdbp
->
Tdbp
->
ColDB
(
g
,
NULL
,
Colnum
);
Colp
=
tdbp
->
Tdbp
->
ColDB
(
g
,
NULL
,
Colnum
);
if
(
Colp
)
{
if
(
Colp
)
{
Colp
->
InitValue
(
g
);
// May not have been done elsewhere
// May not have been done elsewhere
Colp
->
InitValue
(
g
);
To_Val
=
Colp
->
GetValue
();
To_Val
=
Colp
->
GetValue
();
// this may be needed by some tables (which?)
Colp
->
SetColUse
(
ColUse
);
}
else
{
}
else
{
sprintf
(
g
->
Message
,
MSG
(
NO_MATCHING_COL
),
Name
,
tdbp
->
Tdbp
->
GetName
());
sprintf
(
g
->
Message
,
MSG
(
NO_MATCHING_COL
),
Name
,
tdbp
->
Tdbp
->
GetName
());
return
TRUE
;
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment