aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DecoderList.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/DecoderList.cxx b/src/DecoderList.cxx
index 2f957d970..834178260 100644
--- a/src/DecoderList.cxx
+++ b/src/DecoderList.cxx
@@ -180,11 +180,9 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
const struct DecoderPlugin *
decoder_plugin_from_name(const char *name)
{
- decoder_plugins_find([=](const DecoderPlugin &plugin){
+ return decoder_plugins_find([=](const DecoderPlugin &plugin){
return strcmp(plugin.name, name) == 0;
});
-
- return nullptr;
}
/**