--- src/libavoid/polyutil.cpp +++ src/libavoid/polyutil.cpp @@ -35,6 +35,7 @@ { Polygn newpoly; + newpoly.id = 0; newpoly.pn = size; newpoly.ps = (Point *) calloc(size, sizeof(Point)); if (!newpoly.ps)