Skip to content

Commit

Permalink
Check that the -o|output command line parameter is not empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Jan 22, 2016
1 parent 8208c53 commit 18f8d3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/software/SfM/main_ComputeSfM_DataColor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}

if (sOutputPLY_Out.empty())
{
std::cerr << std::endl
<< "No output PLY filename specified." << std::endl;
return EXIT_FAILURE;
}

// Load input SfM_Data scene
SfM_Data sfm_data;
if (!Load(sfm_data, sSfM_Data_Filename_In, ESfM_Data(ALL)))
Expand Down

0 comments on commit 18f8d3d

Please sign in to comment.