[network-manager-fortisslvpn] properties: avoid setting the trusted-cert to NULL
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-fortisslvpn] properties: avoid setting the trusted-cert to NULL
- Date: Wed, 23 Sep 2015 22:00:32 +0000 (UTC)
commit 5b47bb811da023ea192c99c97dcaf94dbb34cbd9
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Wed Sep 23 23:49:47 2015 +0200
properties: avoid setting the trusted-cert to NULL
properties/nm-fortisslvpn.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/properties/nm-fortisslvpn.c b/properties/nm-fortisslvpn.c
index b399e2a..3fcc281 100644
--- a/properties/nm-fortisslvpn.c
+++ b/properties/nm-fortisslvpn.c
@@ -306,8 +306,9 @@ init_plugin_ui (FortisslvpnPluginUiWidget *self, NMConnection *connection, GErro
if (s_vpn) {
priv->trusted_cert = g_strdup (nm_setting_vpn_get_data_item (s_vpn,
NM_FORTISSLVPN_KEY_TRUSTED_CERT));
- if (priv->trusted_cert && strlen (priv->trusted_cert))
- gtk_entry_set_text (GTK_ENTRY (widget), priv->trusted_cert);
+ if (!priv->trusted_cert)
+ priv->trusted_cert = g_strdup ("");
+ gtk_entry_set_text (GTK_ENTRY (widget), priv->trusted_cert);
}
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "show_passwords_checkbutton"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]