Push len computing to the right place.

This commit is contained in:
Klaas Freitag 2013-04-03 16:38:35 +02:00
parent c745bf4291
commit 0bea2ea8f9

View File

@ -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;