[gimp/gimp-2-10] app: in the dashboard, fix statm file-descriptor initialization



commit a334b78327f7072901bb3573042d630d50cb9e19
Author: Ell <ell_se yahoo com>
Date:   Tue Jun 19 13:39:52 2018 -0400

    app: in the dashboard, fix statm file-descriptor initialization
    
    ... in the unlikely case that getting the page-size fails.
    
    (cherry picked from commit dc6ea0a977c7cf4f51f79271e0bdecc479e54276)

 app/widgets/gimpdashboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 55e7adf541..209e755197 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -1944,7 +1944,7 @@ gimp_dashboard_sample_memory_used (GimpDashboard *dashboard,
   VariableData         *variable_data = &priv->variables[variable];
   static gboolean       initialized   = FALSE;
   static long           page_size;
-  static gint           fd;
+  static gint           fd            = -1;
   gchar                 buffer[128];
   gint                  size;
   unsigned long long    resident;


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