memcpy(spec->sha1, sha1, 20);
spec->sha1_valid = !!memcmp(sha1, null_sha1, 20);
}
memcpy(spec->sha1, sha1, 20);
spec->sha1_valid = !!memcmp(sha1, null_sha1, 20);
}
munmap(s->data, s->size);
s->should_free = s->should_munmap = 0;
s->data = NULL;
munmap(s->data, s->size);
s->should_free = s->should_munmap = 0;
s->data = NULL;