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/os | |
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/os')
-rw-r--r-- | innobase/os/os0file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 3f14a2158ed..aad8a911fd5 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -2314,18 +2314,18 @@ os_file_dirname( if (last_slash < 0) { /* no slash in the path, return "." */ - return(ut_strdup((char*)".")); + return(mem_strdup(".")); } /* ok, there is a slash */ if (last_slash == 0) { /* last slash is the first char of the path */ - return(ut_strdup((char*)"/")); + return(mem_strdup("/")); } /* non-trivial directory component */ - dir = ut_strdup(path); + dir = mem_strdup(path); dir[last_slash] = 0; return(dir); |