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
d5adc29d
Commit
d5adc29d
authored
Apr 01, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings
sql/key.cc: Fixed compiler warnings about not initialized variables
parent
ff650ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sql/key.cc
sql/key.cc
+6
-0
No files found.
sql/key.cc
View file @
d5adc29d
...
@@ -652,6 +652,9 @@ ulong key_hashnr(KEY *key_info, uint used_key_parts, const uchar *key)
...
@@ -652,6 +652,9 @@ ulong key_hashnr(KEY *key_info, uint used_key_parts, const uchar *key)
uint
length
,
pack_length
;
uint
length
,
pack_length
;
bool
is_string
=
TRUE
;
bool
is_string
=
TRUE
;
LINT_INIT
(
cs
);
LINT_INIT
(
cs
);
LINT_INIT
(
length
);
LINT_INIT
(
pack_length
);
key
+=
key_part
->
length
;
key
+=
key_part
->
length
;
if
(
key_part
->
null_bit
)
if
(
key_part
->
null_bit
)
{
{
...
@@ -756,6 +759,9 @@ bool key_buf_cmp(KEY *key_info, uint used_key_parts,
...
@@ -756,6 +759,9 @@ bool key_buf_cmp(KEY *key_info, uint used_key_parts,
uint
length1
,
length2
,
pack_length
;
uint
length1
,
length2
,
pack_length
;
bool
is_string
=
TRUE
;
bool
is_string
=
TRUE
;
LINT_INIT
(
cs
);
LINT_INIT
(
cs
);
LINT_INIT
(
length1
);
LINT_INIT
(
length2
);
key1
+=
key_part
->
length
;
key1
+=
key_part
->
length
;
key2
+=
key_part
->
length
;
key2
+=
key_part
->
length
;
if
(
key_part
->
null_bit
)
if
(
key_part
->
null_bit
)
...
...
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