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
27e8da79
Commit
27e8da79
authored
Oct 31, 2005
by
reggie@fedora.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved previous changeset per JimW's review
parent
53089ec4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
server-tools/instance-manager/instance_options.cc
server-tools/instance-manager/instance_options.cc
+1
-1
server-tools/instance-manager/parse_output.cc
server-tools/instance-manager/parse_output.cc
+11
-11
No files found.
server-tools/instance-manager/instance_options.cc
View file @
27e8da79
...
...
@@ -340,7 +340,7 @@ int Instance_options::complete_initialization(const char *default_path,
// it's safe to cast this to char* since this is a buffer we are allocating
char
*
end
=
convert_dirname
((
char
*
)
mysqld_path
,
mysqld_path
,
NullS
);
end
[
-
1
]
=
0
;
end
[
-
1
]
=
0
;
mysqld_path_len
=
strlen
(
mysqld_path
);
...
...
server-tools/instance-manager/parse_output.cc
View file @
27e8da79
...
...
@@ -26,16 +26,16 @@
void
trim_space
(
const
char
**
text
,
uint
*
word_len
)
{
const
char
*
start
=
*
text
;
while
(
*
start
!=
0
&&
*
start
==
' '
)
start
++
;
*
text
=
start
;
int
len
=
strlen
(
start
);
const
char
*
end
=
start
+
len
-
1
;
while
(
end
>
start
&&
(
*
end
==
' '
||
*
end
==
'\r'
||
*
end
==
'\n'
))
end
--
;
*
word_len
=
(
end
-
start
)
+
1
;
const
char
*
start
=
*
text
;
while
(
*
start
!=
0
&&
*
start
==
' '
)
start
++
;
*
text
=
start
;
int
len
=
strlen
(
start
);
const
char
*
end
=
start
+
len
-
1
;
while
(
end
>
start
&&
(
*
end
==
' '
||
*
end
==
'\r'
||
*
end
==
'\n'
))
end
--
;
*
word_len
=
(
end
-
start
)
+
1
;
}
/*
...
...
@@ -108,7 +108,7 @@ int parse_output_and_get_value(const char *command, const char *word,
linep
+=
wordlen
;
/* swallow the previous one */
if
(
flag
&
GET_VALUE
)
{
get_word
((
const
char
**
)
&
linep
,
&
found_word_len
,
NONSPACE
);
trim_space
((
const
char
**
)
&
linep
,
&
found_word_len
);
if
(
input_buffer_len
<=
found_word_len
)
goto
err
;
strmake
(
result
,
linep
,
found_word_len
);
...
...
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