lwerror("Dimensions mismatch in lwpoly");
pasize = pa->npoints * ptsize;
- memcpy(loc, getPoint_internal(pa, 0), pasize);
+ if ( pa->npoints > 0 )
+ memcpy(loc, getPoint_internal(pa, 0), pasize);
loc += pasize;
}
return (size_t)(loc - buf);
lwerror("Dimensions mismatch in lwpoly");
pasize = pa->npoints * ptsize;
- memcpy(loc, getPoint_internal(pa, 0), pasize);
+ if ( pa->npoints > 0 )
+ memcpy(loc, getPoint_internal(pa, 0), pasize);
loc += pasize;
}
return (size_t)(loc - buf);
}
return g_out;
-}
\ No newline at end of file
+}