mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 03:32:24 +00:00
DtMmdb: check if the log file exists before deleting to avoid
crash.
This commit is contained in:
parent
4ddd76449c
commit
dd4431719f
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ debug(cerr, int(log_store));
|
|||
|
||||
if ( status == DISABLED && log_store ) {
|
||||
delete log_store;
|
||||
del_file(form("%s.log", name), path);
|
||||
if ( exist_file(form("%s.log", name), path) )
|
||||
del_file(form("%s.log", name), path);
|
||||
}
|
||||
delete log_index;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue