1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-8717 - Obsolete sql_strdup() in favor of THD::strdup() and thd_strdup()

This commit is contained in:
Sergey Vojtovich
2015-11-18 19:50:53 +04:00
parent 13af8650a8
commit 464394bf47
4 changed files with 6 additions and 16 deletions

View File

@ -84,16 +84,6 @@ void *sql_calloc(size_t size)
}
char *sql_strdup(const char *str)
{
size_t len= strlen(str)+1;
char *pos;
if ((pos= (char*) sql_alloc(len)))
memcpy(pos,str,len);
return pos;
}
char *sql_strmake(const char *str, size_t len)
{
char *pos;