network-manager-applet r1028 - trunk/src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r1028 - trunk/src
- Date: Sun, 16 Nov 2008 01:19:20 +0000 (UTC)
Author: dcbw
Date: Sun Nov 16 01:19:20 2008
New Revision: 1028
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1028&view=rev
Log:
Fix warning
Modified:
trunk/src/applet-device-gsm.c
Modified: trunk/src/applet-device-gsm.c
==============================================================================
--- trunk/src/applet-device-gsm.c (original)
+++ trunk/src/applet-device-gsm.c Sun Nov 16 01:19:20 2008
@@ -471,7 +471,7 @@
GtkEntry **out_secret_entry)
{
GtkDialog *dialog;
- GtkWidget *w, *ok_button;
+ GtkWidget *w = NULL, *ok_button;
GtkBox *box;
char *dev_str;
@@ -493,7 +493,8 @@
w = gtk_label_new (_("PIN code is needed for the mobile broadband device"));
else if (!strcmp (secret_name, NM_SETTING_GSM_PUK))
w = gtk_label_new (_("PUK code is needed for the mobile broadband device"));
- gtk_box_pack_start (GTK_BOX (dialog->vbox), w, TRUE, TRUE, 0);
+ if (w)
+ gtk_box_pack_start (GTK_BOX (dialog->vbox), w, TRUE, TRUE, 0);
dev_str = g_strdup_printf ("<b>%s</b>", utils_get_device_description (device));
w = gtk_label_new (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]