[network-manager-applet: 9/13] applet: fix initialization of value from wrong enum type



commit 1006f51352b4809ed4d174e9990e87cd1aba8778
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>

 src/applet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 81e2ac5..f3f4344 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]