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
23385734
Commit
23385734
authored
Aug 29, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed coredump in charset.c - bk messed up, so here is another try to push it
parent
710b75f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
mysys/charset.c
mysys/charset.c
+15
-11
No files found.
mysys/charset.c
View file @
23385734
...
@@ -193,7 +193,9 @@ static my_bool init_available_charsets(myf myflags)
...
@@ -193,7 +193,9 @@ static my_bool init_available_charsets(myf myflags)
charset_initialized
=
1
;
charset_initialized
=
1
;
pthread_mutex_unlock
(
&
THR_LOCK_charset
);
pthread_mutex_unlock
(
&
THR_LOCK_charset
);
}
}
return
error
||
!
available_charsets
[
0
];
if
(
!
available_charsets
||
!
available_charsets
[
0
])
error
=
TRUE
;
return
error
;
}
}
...
@@ -467,6 +469,7 @@ char * list_charsets(myf want_flags)
...
@@ -467,6 +469,7 @@ char * list_charsets(myf want_flags)
DYNAMIC_STRING
s
;
DYNAMIC_STRING
s
;
char
*
p
;
char
*
p
;
(
void
)
init_available_charsets
(
MYF
(
0
));
init_dynamic_string
(
&
s
,
NullS
,
256
,
1024
);
init_dynamic_string
(
&
s
,
NullS
,
256
,
1024
);
if
(
want_flags
&
MY_COMPILED_SETS
)
if
(
want_flags
&
MY_COMPILED_SETS
)
...
@@ -485,7 +488,8 @@ char * list_charsets(myf want_flags)
...
@@ -485,7 +488,8 @@ char * list_charsets(myf want_flags)
char
buf
[
FN_REFLEN
];
char
buf
[
FN_REFLEN
];
MY_STAT
stat
;
MY_STAT
stat
;
for
(
c
=
available_charsets
;
*
c
;
++
c
)
if
((
c
=
available_charsets
))
for
(;
*
c
;
++
c
)
{
{
if
(
charset_in_string
((
*
c
)
->
name
,
&
s
))
if
(
charset_in_string
((
*
c
)
->
name
,
&
s
))
continue
;
continue
;
...
...
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