mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Push len computing to the right place.
This commit is contained in:
parent
c745bf4291
commit
0bea2ea8f9
@ -91,7 +91,6 @@ static int _csync_detect_update(CSYNC *ctx, const char *file,
|
||||
}
|
||||
|
||||
path = file;
|
||||
len = strlen(path);
|
||||
switch (ctx->current) {
|
||||
case LOCAL_REPLICA:
|
||||
if (strlen(path) <= strlen(ctx->local.uri)) {
|
||||
@ -111,6 +110,8 @@ static int _csync_detect_update(CSYNC *ctx, const char *file,
|
||||
break;
|
||||
}
|
||||
|
||||
len = strlen(path);
|
||||
|
||||
h = _hash_of_file(ctx, file );
|
||||
if( h == 0 ) {
|
||||
return -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user