From d8fc330be4388e700a8f982b534bcb09c424ac45 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Fri, 27 Nov 2020 19:35:12 -0500 Subject: [PATCH] Assign pointer to prevent errors --- examples/ImuFactorsExample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;