1
0
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:
Witold Filipczyk 2022-02-21 19:06:48 +01:00
parent 2e2737e6de
commit a82bc17cb0

View File

@ -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");