[network-manager-applet/aleksander/mobile-providers: 15/19] libnm-gtk: country info is ensured to exist in the HT



commit a4384ae91e1b50bb5a12540cfb0d56ae2b6a595b
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Nov 27 14:25:42 2012 +0100

    libnm-gtk: country info is ensured to exist in the HT

 src/libnm-gtk/nm-mobile-providers.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libnm-gtk/nm-mobile-providers.c b/src/libnm-gtk/nm-mobile-providers.c
index fcc05cd..b99adb6 100644
--- a/src/libnm-gtk/nm-mobile-providers.c
+++ b/src/libnm-gtk/nm-mobile-providers.c
@@ -736,9 +736,10 @@ parser_country_end (MobileParser *parser,
 		NMACountryInfo *country_info;
 
 		country_info = g_hash_table_lookup (parser->table, parser->current_country);
-		if (country_info)
-			/* Store providers for this country */
-			country_info->providers = parser->current_providers;
+		g_assert (country_info);
+
+		/* Store providers for this country */
+		country_info->providers = parser->current_providers;
 
 		parser->current_country = NULL;
 		parser->current_providers = NULL;



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