fixed uninitialized variable introduced by the fix for bug 29325

parent 1f7a28bd
...@@ -586,8 +586,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, ...@@ -586,8 +586,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
32 : 0)); 32 : 0));
linkname_ptr=0; linkname_ptr=0;
/* Replace the current file */ /* Replace the current file */
if (!(flags & HA_CREATE_KEEP_FILES)) create_flag=(flags & HA_CREATE_KEEP_FILES) ? 0 : MY_DELETE_OLD;
create_flag=MY_DELETE_OLD;
} }
/* /*
...@@ -648,8 +647,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, ...@@ -648,8 +647,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
{ {
fn_format(filename,name,"",MI_NAME_DEXT,4); fn_format(filename,name,"",MI_NAME_DEXT,4);
linkname_ptr=0; linkname_ptr=0;
if (!(flags & HA_CREATE_KEEP_FILES)) create_flag=(flags & HA_CREATE_KEEP_FILES) ? 0 : MY_DELETE_OLD;
create_flag=MY_DELETE_OLD;
} }
if ((dfile= if ((dfile=
my_create_with_symlink(linkname_ptr, filename, 0, create_mode, my_create_with_symlink(linkname_ptr, filename, 0, create_mode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment