mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
downloader: copy logfile name
At some places, this string is free()d, so it must not be assigned a constant string. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b84baa8a0d
commit
5c9f3742ec
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ int main(int argc, char **argv)
|
|||
struct filter_preset_table presets;
|
||||
|
||||
// set a default logfile name for libdivecomputer so we always get a logfile
|
||||
logfile_name = "subsurface-downloader.log";
|
||||
logfile_name = strdup("subsurface-downloader.log");
|
||||
|
||||
const char *default_directory = system_default_directory();
|
||||
const char *default_filename = system_default_filename();
|
||||
|
|
Loading…
Reference in a new issue