fix regression in merge_polygon() after adding fscanf validity checks
This commit is contained in:
parent
f1b3a2d3b1
commit
7efc069117
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue