[gnome-flashback] monitor-config-store: initialize buffer and size variables



commit 44c07f6bba31d20aab235f9653dff2f1d5e4655b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 16 17:04:04 2021 +0200

    monitor-config-store: initialize buffer and size variables
    
    Coverity CID: #1502689

 backends/gf-monitor-config-store.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/backends/gf-monitor-config-store.c b/backends/gf-monitor-config-store.c
index e07af59..7149422 100644
--- a/backends/gf-monitor-config-store.c
+++ b/backends/gf-monitor-config-store.c
@@ -1132,6 +1132,9 @@ read_config_file (GfMonitorConfigStore  *config_store,
   ConfigParser parser;
   GMarkupParseContext *parse_context;
 
+  buffer = NULL;
+  size = 0;
+
   if (!g_file_load_contents (file, NULL, &buffer, &size, NULL, error))
     return FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]