summaryrefslogtreecommitdiff
path: root/mysys/my_static.c
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-03-23 11:01:47 +0100
committerunknown <msvensson@pilot.blaudden>2007-03-23 11:01:47 +0100
commit2188de4fdd7f452e06114d12d5628d68f6d1eba5 (patch)
treef97ccf8d0efcbd94b2aed52124e95c863b8bedce /mysys/my_static.c
parentd6bd171fd2ecf9a58c2dcd3f34b9b248c7ac62ba (diff)
downloadmariadb-git-2188de4fdd7f452e06114d12d5628d68f6d1eba5.tar.gz
Bug#26233 very suspect code in mf_tempfile.c, in function create_temp_file()
- Rework the windows implementation in 'create_temp_file' to be thread safe by using GetTempFileName instad of fiddling with "environ" mysys/mf_tempfile.c: - Update windows implementation of 'create_temp_file' to use GetTempFileName in favor of fiddeling with "environ" in an unsafe way - Remove the implementation that is supposed to be used if not windows, not mkstemp or tmpnam exists as it not longer compiles it can't be used anywhere. - Update function comment for 'create_temp_file' mysys/my_static.c: Remove unused variable mysys/my_static.h: Remove unused variable
Diffstat (limited to 'mysys/my_static.c')
-rw-r--r--mysys/my_static.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mysys/my_static.c b/mysys/my_static.c
index 694e5058bb0..77dbffb911e 100644
--- a/mysys/my_static.c
+++ b/mysys/my_static.c
@@ -69,11 +69,6 @@ my_bool my_use_large_pages= 0;
uint my_large_page_size= 0;
#endif
- /* from my_tempnam */
-#if !defined(HAVE_TEMPNAM) || defined(HPUX11)
-int _my_tempnam_used=0;
-#endif
-
/* from safe_malloc */
uint sf_malloc_prehunc=0, /* If you have problem with core- */
sf_malloc_endhunc=0, /* dump when malloc-message.... */