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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8f40c029
Commit
8f40c029
authored
Nov 04, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -Wmaybe-uninitialized
Follow-up to commit
8965ae27
: always initialize found_group.
parent
541b00a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
mysys/my_default.c
mysys/my_default.c
+8
-5
No files found.
mysys/my_default.c
View file @
8f40c029
...
...
@@ -605,7 +605,7 @@ static int search_default_file_with_ext(struct handle_option_ctx *ctx,
const
int
max_recursion_level
=
10
;
MYSQL_FILE
*
fp
;
uint
line
=
0
;
enum
{
SKIP
,
PARSE
,
NONE
}
found_group
;
enum
{
NONE
,
PARSE
,
SKIP
}
found_group
=
NONE
;
uint
i
;
MY_DIR
*
search_dir
;
FILEINFO
*
search_file
;
...
...
@@ -749,15 +749,18 @@ static int search_default_file_with_ext(struct handle_option_ctx *ctx,
?
PARSE
:
SKIP
;
continue
;
}
if
(
found_group
==
NONE
)
switch
(
found_group
)
{
case
NONE
:
fprintf
(
stderr
,
"error: Found option without preceding group in config file: %s at line: %d
\n
"
,
name
,
line
);
goto
err
;
}
if
(
found_group
==
SKIP
)
case
PARSE
:
break
;
case
SKIP
:
continue
;
}
end
=
remove_end_comment
(
ptr
);
if
((
value
=
strchr
(
ptr
,
'='
)))
...
...
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