mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-02 08:57:19 -04:00
[terminal] Make a copy of filename for hash
This commit is contained in:
parent
49285684ea
commit
db99981ec5
@ -97,7 +97,11 @@ save_temporary_filename(const char *filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (temporary_files) {
|
if (temporary_files) {
|
||||||
add_hash_item(temporary_files, filename, strlen(filename), NULL);
|
char *copy = stracpy(filename);
|
||||||
|
|
||||||
|
if (copy) {
|
||||||
|
add_hash_item(temporary_files, copy, strlen(copy), NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user