Commit b93631cb authored by Jeff Baumes's avatar Jeff Baumes
Browse files

BUG: Avoid Windows crash on printing empty string.

parent da44b946
......@@ -2,7 +2,6 @@
int TestGeoProjection( int argc, char* argv[] )
{
const char* projName = argc > 1 ? argv[1] : "rouss";
int np = vtkGeoProjection::GetNumberOfProjections();
cout << "Supported projections:\n";
for ( int i = 0; i < np; ++ i )
......@@ -12,6 +11,7 @@ int TestGeoProjection( int argc, char* argv[] )
}
cout << "-------\n";
vtkGeoProjection* proj = vtkGeoProjection::New();
const char* projName = "rouss";
proj->SetName( projName );
cout << projName << " is " << proj->GetDescription() << "\n";
proj->Delete();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment