[PATCH] mobile wizard segfault
- From: Mikhail Efremov <sem altlinux ru>
- To: networkmanager-list gnome org
- Subject: [PATCH] mobile wizard segfault
- Date: Thu, 16 Jul 2009 17:19:49 +0400
Hello!
If to select "My plan is not listed" on page "Choose your Billing Plan"
and to type own APN, then segfault occurs when "Forward" button is
pressed. This patch solves this problem.
--
WBR, Mikhail Efremov
diff --git a/src/utils/mobile-wizard.c b/src/utils/mobile-wizard.c
index 0045283..147a926 100644
--- a/src/utils/mobile-wizard.c
+++ b/src/utils/mobile-wizard.c
@@ -316,7 +316,8 @@ confirm_prepare (MobileWizard *self)
gtk_label_set_text (GTK_LABEL (self->confirm_plan), _("Unlisted"));
str = g_string_new (NULL);
- g_string_append_printf (str, "<span color=\"#999999\">APN: %s</span>", method->gsm_apn);
+ g_string_append_printf (str, "<span color=\"#999999\">APN: %s</span>",
+ method ? method->gsm_apn : gtk_entry_get_text (GTK_ENTRY (self->plan_unlisted_entry)));
gtk_label_set_markup (GTK_LABEL (self->confirm_apn), str->str);
g_string_free (str, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]