mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Avoid a null pointer dereference.
This commit is contained in:
parent
337c56da66
commit
7f7c2b977c
1 changed files with 6 additions and 3 deletions
|
@ -229,9 +229,12 @@ static int _merge_file_trees_visitor(void *obj, void *data) {
|
|||
}
|
||||
|
||||
tfs = c_rbtree_node_data(node);
|
||||
fs->md5 = c_strdup( tfs->md5 );
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "PRE UPDATED %s: %s <-> %s", uri, fs->md5, tfs->md5);
|
||||
|
||||
if( tfs->md5 ) {
|
||||
fs->md5 = c_strdup( tfs->md5 );
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "PRE UPDATED %s: %s <-> %s", uri, fs->md5, tfs->md5);
|
||||
} else {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "md5 is empty in merger!");
|
||||
}
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "file: %s, instruction: UPDATED (%s)", uri, fs->md5);
|
||||
|
||||
fs->instruction = CSYNC_INSTRUCTION_NONE;
|
||||
|
|
Loading…
Reference in a new issue