fix regression in merge_polygon() after adding fscanf validity checks

This commit is contained in:
Stefan Frederik 2021-01-12 16:14:43 +01:00
parent f1b3a2d3b1
commit 7efc069117
1 changed files with 0 additions and 2 deletions

View File

@ -155,8 +155,6 @@ void merge_polygon(FILE *fd)
int i,c, j, points;
xPoly *ptr;
fscanf(fd, "%d %d",&c, &points);
if(fscanf(fd, "%d %d",&c, &points)<2) {
fprintf(errfp,"merge_polygon(): WARNING: missing fields for POLYGON object, ignoring.\n");
read_line(fd, 0);