[network-manager-applet/nma-0-9-10: 9/15] applet: fix initialization of value from wrong enum type



commit 7f2dab9cf037031805e284524007adf32ce26182
Author: Thomas Haller <thaller redhat com>
Date:   Mon Oct 27 15:38:24 2014 +0100

    applet: fix initialization of value from wrong enum type
    
    This bug has no real consequences as NM_VPN_SERVICE_STATE_UNKNOWN
    and NM_VPN_CONNECTION_STATE_UNKNOWN are both numerically zero.
    
    Signed-off-by: Thomas Haller <thaller redhat com>
    (cherry picked from commit 1006f51352b4809ed4d174e9990e87cd1aba8778)

 src/applet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 48b5f66..5011b31 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2924,7 +2924,7 @@ applet_update_icon (gpointer user_data)
        GdkPixbuf *pixbuf = NULL;
        NMState state;
        char *dev_tip = NULL, *vpn_tip = NULL;
-       NMVPNConnectionState vpn_state = NM_VPN_SERVICE_STATE_UNKNOWN;
+       NMVPNConnectionState vpn_state = NM_VPN_CONNECTION_STATE_UNKNOWN;
        gboolean nm_running;
        NMActiveConnection *active_vpn = NULL;
 


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