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
d07557d6
Commit
d07557d6
authored
Sep 06, 2004
by
cps@silver_beast.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory allocation: allocated memory wasn't enough to store the
final 0 of the string.
parent
11e4e18c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mysys/default.c
mysys/default.c
+1
-1
No files found.
mysys/default.c
View file @
d07557d6
...
@@ -258,7 +258,7 @@ static int handle_default_option(void *in_ctx, const char *group_name,
...
@@ -258,7 +258,7 @@ static int handle_default_option(void *in_ctx, const char *group_name,
ctx
=
(
struct
handle_option_ctx
*
)
in_ctx
;
ctx
=
(
struct
handle_option_ctx
*
)
in_ctx
;
if
(
find_type
((
char
*
)
group_name
,
ctx
->
group
,
3
))
if
(
find_type
((
char
*
)
group_name
,
ctx
->
group
,
3
))
{
{
if
(
!
(
tmp
=
alloc_root
(
ctx
->
alloc
,
(
uint
)
strlen
(
option
))))
if
(
!
(
tmp
=
alloc_root
(
ctx
->
alloc
,
(
uint
)
strlen
(
option
)
+
1
)))
return
1
;
return
1
;
if
(
insert_dynamic
(
ctx
->
args
,
(
gptr
)
&
tmp
))
if
(
insert_dynamic
(
ctx
->
args
,
(
gptr
)
&
tmp
))
return
1
;
return
1
;
...
...
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