mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[util] const in get_tempdir_filename
This commit is contained in:
parent
2e2737e6de
commit
a82bc17cb0
@ -171,7 +171,7 @@ get_unique_name(char *fileprefix)
|
||||
char *
|
||||
get_tempdir_filename(const char *name)
|
||||
{
|
||||
char *tmpdir = getenv("TMPDIR");
|
||||
const char *tmpdir = getenv("TMPDIR");
|
||||
|
||||
if (!tmpdir || !*tmpdir) tmpdir = getenv("TMP");
|
||||
if (!tmpdir || !*tmpdir) tmpdir = getenv("TEMPDIR");
|
||||
|
Loading…
Reference in New Issue
Block a user