summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-03-16 14:03:17 +0100
committerSergei Golubchik <serg@mariadb.org>2017-03-16 14:03:17 +0100
commit8971286a3c9bcd184e4d1b6f4b1bc190771af383 (patch)
tree4c419119daf3a91825ef095ab85abb89aeed2ed6 /include
parent2d0c579a86fb9f976ab447e5799084e39a615329 (diff)
downloadmariadb-git-8971286a3c9bcd184e4d1b6f4b1bc190771af383.tar.gz
compiler warning
Diffstat (limited to 'include')
-rw-r--r--include/mysql/psi/mysql_file.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mysql/psi/mysql_file.h b/include/mysql/psi/mysql_file.h
index df94603176f..2f388c285bf 100644
--- a/include/mysql/psi/mysql_file.h
+++ b/include/mysql/psi/mysql_file.h
@@ -1347,8 +1347,8 @@ inline_mysql_file_delete_with_symlink(
const char *name, const char *ext, myf flags)
{
int result;
- char fullname[FN_REFLEN];
- fn_format(fullname, name, "", ext, MY_UNPACK_FILENAME | MY_APPEND_EXT);
+ char buf[FN_REFLEN];
+ char *fullname= fn_format(buf, name, "", ext, MY_UNPACK_FILENAME | MY_APPEND_EXT);
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;