NetworkManager r4197 - in trunk: . src/supplicant-manager



Author: dcbw
Date: Mon Oct 20 21:08:11 2008
New Revision: 4197
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4197&view=rev

Log:
2008-10-20  Dan Williams  <dcbw redhat com>

	* src/supplicant-manager/nm-supplicant-config.c
		- (ADD_STRING_LIST_VAL): don't add empty values to the supplicant config



Modified:
   trunk/ChangeLog
   trunk/src/supplicant-manager/nm-supplicant-config.c

Modified: trunk/src/supplicant-manager/nm-supplicant-config.c
==============================================================================
--- trunk/src/supplicant-manager/nm-supplicant-config.c	(original)
+++ trunk/src/supplicant-manager/nm-supplicant-config.c	Mon Oct 20 21:08:11 2008
@@ -438,7 +438,10 @@
 		} \
 		if (ucase) \
 		  g_string_ascii_up (str); \
-		success = nm_supplicant_config_add_option (self, name, str->str, -1, secret); \
+		if (str->len) \
+			success = nm_supplicant_config_add_option (self, name, str->str, -1, secret); \
+		else \
+			success = TRUE; \
 		g_string_free (str, TRUE); \
 		if (!success) { \
 			nm_warning ("Error adding %s to supplicant config.", name); \



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