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



commit 881d31d6432904a34397386ac6496cd4a371ba11
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 afb8878..31e4fb0 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]