summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-27 15:03:30 +0200
committerMonty <monty@mariadb.org>2018-01-27 15:03:30 +0200
commit95f393394442437eea403d91c3c4bd68ec24fdf9 (patch)
tree13c955baf344c372b78fe48ac742ea92e0003ed6 /storage
parent8ff5ddae231d31f0ff721d2fd518f65d96142c21 (diff)
downloadmariadb-git-95f393394442437eea403d91c3c4bd68ec24fdf9.tar.gz
Fixed compiler warnings
Only warnings, should not have caused any bugs in old code
Diffstat (limited to 'storage')
-rw-r--r--storage/maria/ma_create.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/maria/ma_create.c b/storage/maria/ma_create.c
index 94c4c250bef..aec705bd540 100644
--- a/storage/maria/ma_create.c
+++ b/storage/maria/ma_create.c
@@ -76,7 +76,7 @@ int maria_create(const char *name, enum data_file_type datafile_type,
uint internal_table= flags & HA_CREATE_INTERNAL_TABLE;
ulong reclength, real_reclength,min_pack_length;
char kfilename[FN_REFLEN], klinkname[FN_REFLEN], *klinkname_ptr;
- char dfilename[FN_REFLEN], dlinkname[FN_REFLEN], *dlinkname_ptr;
+ char dfilename[FN_REFLEN], dlinkname[FN_REFLEN], *dlinkname_ptr= 0;
ulong pack_reclength;
ulonglong tot_length,max_rows, tmp;
enum en_fieldtype type;
@@ -1197,7 +1197,6 @@ int maria_create(const char *name, enum data_file_type datafile_type,
{
fn_format(dfilename,name,"", MARIA_NAME_DEXT,
MY_UNPACK_FILENAME | MY_APPEND_EXT);
- dlinkname_ptr= NullS;
create_flag= (flags & HA_CREATE_KEEP_FILES) ? 0 : MY_DELETE_OLD;
}
if ((dfile=
@@ -1251,8 +1250,6 @@ err_no_lock:
switch (errpos) {
case 3:
mysql_file_close(dfile, MYF(0));
- /* fall through */
- case 2:
if (! (flags & HA_DONT_TOUCH_DATA))
{
mysql_file_delete(key_file_dfile, dfilename, MYF(sync_dir));