Permalink
Browse files

rpc_mapproject: Found an uninitialized variable

  • Loading branch information...
1 parent ef07e7d commit 114770929878d321e2b63e018983f77cd06e3cfd @oleg-alexandrov oleg-alexandrov committed May 8, 2013
Showing with 9 additions and 1 deletion.
  1. +7 −0 src/asp/Core/StereoSettings.cc
  2. +2 −1 src/asp/Core/StereoSettings.h
@@ -40,11 +40,18 @@ namespace {
}
namespace asp {
+
StereoSettings& stereo_settings() {
stereo_settings_once.run( init_stereo_settings );
return *stereo_settings_ptr;
}
+ StereoSettings::StereoSettings(){
+ // Must initialize this variable as it is used in rpc_mapproject
+ // to get a camera pointer, and there we don't parse stereo.default
+ disable_correct_velocity_aberration = false;
+ }
+
// Define our options that are available
// ----------------------------------------------------------
PreProcessingDescription::PreProcessingDescription() : po::options_description("Preprocessing Options") {
@@ -71,6 +71,7 @@ namespace asp {
// Structure holding variables
class StereoSettings {
public:
+ StereoSettings();
void validate();
void write_copy( int argc, char *argv[],
std::string const& input_file,
@@ -157,7 +158,7 @@ namespace asp {
/// Return the singleton instance of the stereo setting structure.
/// The stereo settings struct is created the first time this method
- /// is invoked. You should *always* access the stereo settings
+ /// is invoked. You must *always* access the stereo settings
/// through this function.
StereoSettings& stereo_settings();

0 comments on commit 1147709

Please sign in to comment.