uint32_t _crc = 0;
if (!path) {
- goto end;
+ goto end_noclose;
}
fd = open(path, O_RDONLY);
if (fd < 0) {
- goto end;
+ goto end_noclose;
}
ret = crc32(fd, &_crc);
end:
close(fd);
+end_noclose:
return ret;
}
goto error;
}
- if (contains) {
+ if (_contains) {
goto end;
}
}