initialize number of vertices

This commit is contained in:
Efi Fogel 2009-07-01 07:27:31 +00:00
parent 7278e6ddf1
commit 227a097ed8
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ template <class Traits_P, class Container_P>
std::istream &
operator>>(std::istream &is, Polygon_2<Traits_P,Container_P>& p)
{
int n; // number of vertices
int n = 0; // number of vertices
is >> n;
typename Traits_P::Point_2 point;