diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-04-02 08:59:04 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2019-04-02 09:02:52 +0200 |
commit | b29b4f8d89ef2003d67891ee5b5a97be2870b3b3 (patch) | |
tree | 0cb6c382f3dfd0881d130c19dc2376e590b0addf | |
parent | aaca84dec0d1d325b9f1e8a09d56d93ebe0f3ea9 (diff) | |
download | NetworkManager-b29b4f8d89ef2003d67891ee5b5a97be2870b3b3.tar.gz |
secret-agent-simple: get rid of an extra variable
-rw-r--r-- | clients/common/nm-secret-agent-simple.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index b83a767292..5e68aa4f28 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -743,7 +743,6 @@ try_spawn_vpn_auth_helper (RequestData *request, NMSettingVpn *s_vpn = nm_connection_get_setting_vpn (request->connection); gs_unref_ptrarray GPtrArray *auth_dialog_argv = g_ptr_array_new (); NMVpnPluginInfo *plugin_info; - gboolean supports_external; const char *s; GPid auth_dialog_pid; int auth_dialog_in_fd; @@ -762,8 +761,7 @@ try_spawn_vpn_auth_helper (RequestData *request, return FALSE; s = nm_vpn_plugin_info_lookup_property (plugin_info, "GNOME", "supports-external-ui-mode"); - supports_external = _nm_utils_ascii_str_to_bool (s, FALSE); - if (!supports_external) + if (!_nm_utils_ascii_str_to_bool (s, FALSE)) return FALSE; s = nm_vpn_plugin_info_lookup_property (plugin_info, "GNOME", "auth-dialog"); |