[pan2] Fix error found by valgrind: Conditional jump or move depends on uninitialised value(s)



commit 08d678e1c4f03b3107f5a85cbe27b4bcc61871b6
Author: Olaf Seibert <rhialto falu nl>
Date:   Sun Mar 13 21:54:38 2016 +0100

    Fix error found by valgrind: Conditional jump or move depends on uninitialised value(s)
    
    Conditional jump or move depends on uninitialised value(s)
       at 0x4761E8: update_status_tooltip (pan.cc:314)
       by 0x4761E8: StatusIconListener (pan.cc:271)
       by 0x4761E8: run_pan_with_status_icon (pan.cc:490)
       by 0x4761E8: main (pan.cc:1103)

 pan/gui/pan.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 6d36b7c..cbbb14b 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -268,11 +268,11 @@ namespace
       prefs.add_listener(this);
       queue.add_listener(this);
       data.add_listener(this);
+      is_online = q.is_online();
+
       update_status_tooltip();
       status_icon_timeout_tag = g_timeout_add (500, status_icon_periodic_refresh, this);
 
-      is_online = q.is_online();
-
       update_status_icon(ICON_STATUS_IDLE);
 
     }


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