mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtdbcache: remove incorrect comment block and tmpnam_buf var (not used)
With Aaron's fixes to dtdbcache fixing a potential coredump, the comment block in the write_db() function regarding tmpnam() no longer applies, and the tmpnam_buf variable is no longer used. So, remove them :)
This commit is contained in:
parent
80f456e3b5
commit
91011085a4
1 changed files with 0 additions and 5 deletions
|
@ -674,11 +674,6 @@ write_db(DtDtsMMHeader *header, void *index, int size, const char *CacheFile)
|
|||
int fd;
|
||||
mode_t cmask = umask((mode_t)077);
|
||||
char *tmpfile;
|
||||
/* tempnam(3) is affected by the TMPDIR environment variable. */
|
||||
/* This creates problems for rename() is "tmpfile" and "cacheFile" */
|
||||
/* are on different file systems. Use tmpnam(3) to create the */
|
||||
/* unique file name instead. */
|
||||
char tmpnam_buf[L_tmpnam + 1];
|
||||
|
||||
if ((tmpfile = malloc(sizeof(_DTDTSMMTEMPDIR) +
|
||||
sizeof(_DTDTSMMTEMPFILE) + 7)) == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue