NetworkManager r4140 - trunk/src/ppp-manager



Author: dcbw
Date: Thu Oct  2 17:06:58 2008
New Revision: 4140
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4140&view=rev

Log:
Small cleanup

Modified:
   trunk/src/ppp-manager/nm-pppd-plugin.c

Modified: trunk/src/ppp-manager/nm-pppd-plugin.c
==============================================================================
--- trunk/src/ppp-manager/nm-pppd-plugin.c	(original)
+++ trunk/src/ppp-manager/nm-pppd-plugin.c	Thu Oct  2 17:06:58 2008
@@ -226,8 +226,8 @@
 static int
 get_credentials (char *username, char *password)
 {
-	char *my_username;
-	char *my_password;
+	char *my_username = NULL;
+	char *my_password = NULL;
 	size_t len;
 	GError *err = NULL;
 
@@ -238,7 +238,6 @@
 
 	g_return_val_if_fail (DBUS_IS_G_PROXY (proxy), -1);
 
-	my_username = my_password = NULL;
 	dbus_g_proxy_call (proxy, "NeedSecrets", &err,
 				    G_TYPE_INVALID,
 				    G_TYPE_STRING, &my_username,



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