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
99677cc5
Commit
99677cc5
authored
Aug 28, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: move safe_str*() from sql_acl.cc to m_string.h
parent
9bd5d54c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
include/m_string.h
include/m_string.h
+11
-0
include/maria.h
include/maria.h
+4
-3
sql/sql_acl.cc
sql/sql_acl.cc
+0
-11
No files found.
include/m_string.h
View file @
99677cc5
...
...
@@ -239,4 +239,15 @@ static inline void lex_string_set(LEX_STRING *lex_str, const char *c_str)
lex_str
->
length
=
strlen
(
c_str
);
}
#ifdef __cplusplus
static
inline
char
*
safe_str
(
char
*
str
)
{
return
str
?
str
:
const_cast
<
char
*>
(
""
);
}
#endif
static
inline
const
char
*
safe_str
(
const
char
*
str
)
{
return
str
?
str
:
""
;
}
static
inline
size_t
safe_strlen
(
const
char
*
str
)
{
return
str
?
strlen
(
str
)
:
0
;
}
#endif
include/maria.h
View file @
99677cc5
...
...
@@ -19,9 +19,6 @@
#ifndef _maria_h
#define _maria_h
#ifdef __cplusplus
extern
"C"
{
#endif
#include <my_base.h>
#include <my_sys.h>
#include <m_ctype.h>
...
...
@@ -30,6 +27,10 @@ extern "C" {
#include <myisamchk.h>
#include <mysql/plugin.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#define MARIA_CANNOT_ROLLBACK
/*
...
...
sql/sql_acl.cc
View file @
99677cc5
...
...
@@ -205,17 +205,6 @@ static plugin_ref old_password_plugin;
#endif
static
plugin_ref
native_password_plugin
;
static
char
*
safe_str
(
char
*
str
)
{
return
str
?
str
:
const_cast
<
char
*>
(
""
);
}
static
const
char
*
safe_str
(
const
char
*
str
)
{
return
str
?
str
:
""
;
}
#ifndef NO_EMBEDDED_ACCESS_CHECKS
static
size_t
safe_strlen
(
const
char
*
str
)
{
return
str
?
strlen
(
str
)
:
0
;
}
#endif
/* Classes */
struct
acl_host_and_ip
...
...
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