dispatcher: drop a useless condition

The request->scripts are allocated in handle_action() and request_free() is
only called after that, so it never sees it NULL. Coverity knows:

CID 59385 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking request->scripts suggests that it may be null,
but it has already been dereferenced on all paths leading to the check.
This commit is contained in:
Lubomir Rintel 2016-02-04 16:51:36 +01:00
parent e8927c14ec
commit 76cb1d4b72

View file

@ -206,8 +206,7 @@ request_free (Request *request)
g_free (request->action);
g_free (request->iface);
g_strfreev (request->envp);
if (request->scripts)
g_ptr_array_free (request->scripts, TRUE);
g_ptr_array_free (request->scripts, TRUE);
g_slice_free (Request, request);
}