diff options
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inputPlugin.c b/src/inputPlugin.c index 72286d3f6..ee2b0c79c 100644 --- a/src/inputPlugin.c +++ b/src/inputPlugin.c @@ -51,6 +51,8 @@ InputPlugin * getInputPluginFromMimeType(char * mimeType) { ListNode * node = inputPlugin_list->firstNode; InputPlugin * plugin = NULL; + if(mimeType == NULL) return NULL; + while(node != NULL) { plugin = node->data; if(stringFoundInStringArray(plugin->mimeTypes, mimeType)) { |