mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Memory cleanups for id syncing, removed unused code.
This commit is contained in:
parent
7600eb4a09
commit
ffc5e6f0cc
@ -222,6 +222,7 @@ static int _merge_file_trees_visitor(void *obj, void *data) {
|
||||
|
||||
tfs = c_rbtree_node_data(node);
|
||||
if( tfs->md5 ) {
|
||||
if( fs->md5 ) SAFE_FREE(fs->md5);
|
||||
fs->md5 = c_strdup( tfs->md5 );
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "PRE UPDATED %s: %s <-> %s", uri, fs->md5, tfs->md5);
|
||||
} else {
|
||||
@ -342,18 +343,4 @@ uint64_t csync_create_statedb_hash(CSYNC *ctx) {
|
||||
return hash;
|
||||
}
|
||||
|
||||
static char* digest_to_out(unsigned char* digest)
|
||||
{
|
||||
char *out = c_malloc(33);
|
||||
int n;
|
||||
|
||||
if( !digest ) return NULL;
|
||||
|
||||
for (n = 0; n < 16; ++n) {
|
||||
snprintf(&(out[n*2]), 16*2, "%02x", (unsigned int) *(digest+n));
|
||||
}
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
/* vim: set ts=8 sw=2 et cindent: */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user