dispatcher: remove local @iface variable from handle_action()

This commit is contained in:
Thomas Haller 2015-08-04 10:49:54 +02:00 committed by Beniamino Galvani
parent 38fa197bab
commit 199754a845

View file

@ -622,7 +622,6 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
GSList *iter;
Request *request;
char **p;
char *iface = NULL;
guint i, num_nowait = 0;
sorted_scripts = find_scripts (str_action);
@ -652,18 +651,16 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
vpn_ip_iface,
vpn_ip4_props,
vpn_ip6_props,
&iface);
&request->iface);
if (request->debug) {
g_message ("------------ Action ID %p '%s' Interface %s Environment ------------",
context, str_action, iface ? iface : "(none)");
context, str_action, request->iface ? request->iface : "(none)");
for (p = request->envp; *p; p++)
g_message (" %s", *p);
g_message ("\n");
}
request->iface = iface;
request->scripts = g_ptr_array_new_full (5, script_info_free);
for (iter = sorted_scripts; iter; iter = g_slist_next (iter)) {
ScriptInfo *s;