diff --git a/examples/ImuFactorsExample.cpp b/examples/ImuFactorsExample.cpp index a8a9715e0..793927d7e 100644 --- a/examples/ImuFactorsExample.cpp +++ b/examples/ImuFactorsExample.cpp @@ -125,7 +125,7 @@ int main(int argc, char* argv[]) { output_filename = var_map["output_filename"].as(); use_isam = var_map["use_isam"].as(); - ISAM2* isam2; + ISAM2* isam2 = 0; if (use_isam) { printf("Using ISAM2\n"); ISAM2Params parameters;