mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Be more consistent about checking for errors from close()
This commit is contained in:
+4
-1
@@ -102,7 +102,10 @@ void decode(char *fname, int z, unsigned x, unsigned y) {
|
||||
} else {
|
||||
perror("fstat");
|
||||
}
|
||||
close(fd);
|
||||
if (close(fd) != 0) {
|
||||
perror("close");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
} else {
|
||||
perror(fname);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user