Fix another crash if the md5 are not computed

This commit is contained in:
Olivier Goffart 2012-11-05 12:07:31 +01:00
parent 67373dcb0d
commit be13ef120d

View file

@ -158,7 +158,7 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) {
cur->instruction = CSYNC_INSTRUCTION_NONE;
other->instruction = CSYNC_INSTRUCTION_NONE;
if( !cur->md5 ) cur->md5 = c_strdup(other->md5);
if( !cur->md5 && other->md5 ) cur->md5 = c_strdup(other->md5);
}
break;
/* file on other replica has changed too */