[gnome-flashback] monitor-config-migration: initialize size variable
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-config-migration: initialize size variable
- Date: Tue, 16 Mar 2021 15:38:07 +0000 (UTC)
commit 44cf2dc35ed69c971fb4ce22388accd97b5ffa22
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Mar 16 16:17:24 2021 +0200
monitor-config-migration: initialize size variable
Coverity CID: #1502697
backends/gf-monitor-config-migration.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/backends/gf-monitor-config-migration.c b/backends/gf-monitor-config-migration.c
index aec5305..b9718fa 100644
--- a/backends/gf-monitor-config-migration.c
+++ b/backends/gf-monitor-config-migration.c
@@ -638,6 +638,8 @@ load_config_file (GFile *file,
GMarkupParseContext *context;
contents = NULL;
+ size = 0;
+
if (!g_file_load_contents (file, NULL, &contents, &size, NULL, error))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]