mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Don't free a NULL pointer at csync_vio_file_stat_destroy().
This commit is contained in:
parent
dc72b7397c
commit
40f21cc369
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ csync_vio_file_stat_t *csync_vio_file_stat_new(void) {
|
|||
|
||||
void csync_vio_file_stat_destroy(csync_vio_file_stat_t *file_stat) {
|
||||
/* FIXME: free rest */
|
||||
if (file_stat == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (file_stat->fields == CSYNC_VIO_FILE_STAT_FIELDS_SYMLINK_NAME) {
|
||||
SAFE_FREE(file_stat->symlink_name);
|
||||
|
|
Loading…
Reference in a new issue