Code cleanup

This commit is contained in:
Pierre Pronchery 2020-11-17 07:13:00 +01:00
parent f07fe73b04
commit 56681c5b2b

View File

@ -227,9 +227,8 @@ AppTransport * apptransport_new_plugin(AppTransportMode mode,
/* load the transport plug-in */
apptransport->plugin = plugin;
if(apptransport->name == NULL
|| (apptransport->definition = plugin_lookup(
apptransport->plugin, "transport"))
== NULL
|| (apptransport->definition = plugin_lookup(plugin,
"transport")) == NULL
|| apptransport->definition->init == NULL
|| apptransport->definition->destroy == NULL
|| (apptransport->tplugin