Initialize variables to NULL 90/215290/4
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 3 Oct 2019 15:46:29 +0000 (17:46 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 9 Oct 2019 09:23:42 +0000 (11:23 +0200)
Change-Id: I8d9abdea13e0a11ac3c0b55386a137f095767803

src/crash-manager/crash-manager.c

index 821d516..9714a6d 100644 (file)
@@ -1111,6 +1111,11 @@ void crash_info_init(struct crash_info *cinfo)
        cinfo->result_path = NULL;
        cinfo->info_path = NULL;
        cinfo->core_path = NULL;
+       cinfo->log_path = NULL;
+
+#ifdef SYS_ASSERT
+       cinfo->sysassert_cs_path = NULL;
+#endif
 }
 
 static bool run(struct crash_info *cinfo)