diff options
author | unknown <marko@hundin.mysql.fi> | 2004-05-11 12:51:42 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-05-11 12:51:42 +0300 |
commit | 8d9ce860ba1d78705e42a639eb988b5223f88ac8 (patch) | |
tree | dc330ace7a48b2aff7fb62e5e0a381008c3674ac /innobase/ut | |
parent | 03795dabb77a1cd825859abdf51f285c584b2952 (diff) | |
download | mariadb-git-8d9ce860ba1d78705e42a639eb988b5223f88ac8.tar.gz |
InnoDB: Replace ut_strdup() with mem_strdup()
innobase/include/ut0mem.h:
Remove ut_strdup(), as it is a clone of mem_strdup()
innobase/os/os0file.c:
Replace ut_strdup() with mem_strdup()
innobase/ut/ut0mem.c:
Remove ut_strdup(), as it is a clone of mem_strdup()
Diffstat (limited to 'innobase/ut')
-rw-r--r-- | innobase/ut/ut0mem.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/innobase/ut/ut0mem.c b/innobase/ut/ut0mem.c index 9d0e63e6099..f21bb752fac 100644 --- a/innobase/ut/ut0mem.c +++ b/innobase/ut/ut0mem.c @@ -299,27 +299,3 @@ ut_str_catenate( return(str); } - -/************************************************************************** -Return a copy of the given string. The returned string must be freed -using mem_free. */ - -char* -ut_strdup( -/*======*/ - /* out, own: cnull-terminated string */ - char* str) /* in: null-terminated string */ -{ - ulint len; - char* copy; - - len = ut_strlen(str); - - copy = mem_alloc(len + 1); - - ut_memcpy(copy, str, len); - - copy[len] = 0; - - return(copy); -} |