diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-05-19 14:40:10 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-05-19 14:48:25 +0200 |
commit | dbf1794070bc6ea9fe906554839533a10401c4f4 (patch) | |
tree | 22e71a7e47f0e006e710735235ec4233713f7d92 /libnm/nm-vpn-plugin-old.c | |
parent | 4bab4294a68785b191f3802a2086368484d151d2 (diff) | |
download | NetworkManager-dbf1794070bc6ea9fe906554839533a10401c4f4.tar.gz |
libnm: NMVpnPluginOld: return service name as const string in need_secrets()
Diffstat (limited to 'libnm/nm-vpn-plugin-old.c')
-rw-r--r-- | libnm/nm-vpn-plugin-old.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm/nm-vpn-plugin-old.c b/libnm/nm-vpn-plugin-old.c index b0334febcb..59ea65b413 100644 --- a/libnm/nm-vpn-plugin-old.c +++ b/libnm/nm-vpn-plugin-old.c @@ -480,7 +480,7 @@ impl_vpn_plugin_old_need_secrets (NMVpnPluginOld *plugin, gpointer user_data) { NMConnection *connection; - char *setting_name; + const char *setting_name; gboolean needed; GError *error = NULL; @@ -511,7 +511,6 @@ impl_vpn_plugin_old_need_secrets (NMVpnPluginOld *plugin, g_assert (setting_name); g_dbus_method_invocation_return_value (context, g_variant_new ("(s)", setting_name)); - g_free (setting_name); } else { /* No secrets required */ g_dbus_method_invocation_return_value (context, |