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
1c108906
Commit
1c108906
authored
Aug 11, 2008
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Post-merge fix: Remove Remove unused variable.
client/mysql_upgrade.c: Remove Remove unused variable.
parents
2c01793a
d622b04f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
client/mysql_upgrade.c
client/mysql_upgrade.c
+6
-6
No files found.
client/mysql_upgrade.c
View file @
1c108906
...
@@ -354,8 +354,6 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
...
@@ -354,8 +354,6 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
const
char
*
self_name
)
const
char
*
self_name
)
{
{
char
*
last_fn_libchar
;
char
*
last_fn_libchar
;
size_t
path_len
;
DYNAMIC_STRING
ds_tmp
;
DYNAMIC_STRING
ds_tmp
;
DBUG_ENTER
(
"find_tool"
);
DBUG_ENTER
(
"find_tool"
);
DBUG_PRINT
(
"enter"
,
(
"progname: %s"
,
my_progname
));
DBUG_PRINT
(
"enter"
,
(
"progname: %s"
,
my_progname
));
...
@@ -375,6 +373,8 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
...
@@ -375,6 +373,8 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
}
}
else
else
{
{
int
len
;
/*
/*
mysql_upgrade was run absolutely or relatively. We can find a sibling
mysql_upgrade was run absolutely or relatively. We can find a sibling
by replacing our name after the LIBCHAR with the new tool name.
by replacing our name after the LIBCHAR with the new tool name.
...
@@ -396,10 +396,10 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
...
@@ -396,10 +396,10 @@ static void find_tool(char *tool_executable_name, const char *tool_name,
last_fn_libchar
-=
6
;
last_fn_libchar
-=
6
;
}
}
len
=
last_fn_libchar
-
self_name
;
my_snprintf
(
tool_executable_name
,
FN_REFLEN
,
"%.*s%c%s"
,
my_snprintf
(
tool_executable_name
,
FN_REFLEN
,
"%.*s%c%s"
,
(
last_fn_libchar
-
self_name
),
self_name
,
len
,
self_name
,
FN_LIBCHAR
,
tool_name
);
FN_LIBCHAR
,
tool_name
);
}
}
verbose
(
"Looking for '%s' as: %s"
,
tool_name
,
tool_executable_name
);
verbose
(
"Looking for '%s' as: %s"
,
tool_name
,
tool_executable_name
);
...
...
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