Fix double-close of top level geometry file

This commit is contained in:
Eric Fischer 2015-03-05 15:22:58 -08:00
parent 97d65e6b7d
commit a8b2db8d5a

View File

@ -765,9 +765,9 @@ void read_json(FILE *f, const char *fname, const char *layername, int maxzoom, i
perror("munmap meta");
}
close(geomfd);
close(metafd);
if (close(metafd) < 0) {
perror("close meta");
}
double minlat = 0, minlon = 0, maxlat = 0, maxlon = 0, midlat = 0, midlon = 0;