Commit 9fc4e67f authored by Warren Dukes's avatar Warren Dukes

fix segfault when no mimeType in a stream

git-svn-id: https://svn.musicpd.org/mpd/trunk@1269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent aa2d56c8
...@@ -51,6 +51,8 @@ InputPlugin * getInputPluginFromMimeType(char * mimeType) { ...@@ -51,6 +51,8 @@ InputPlugin * getInputPluginFromMimeType(char * mimeType) {
ListNode * node = inputPlugin_list->firstNode; ListNode * node = inputPlugin_list->firstNode;
InputPlugin * plugin = NULL; InputPlugin * plugin = NULL;
if(mimeType == NULL) return NULL;
while(node != NULL) { while(node != NULL) {
plugin = node->data; plugin = node->data;
if(stringFoundInStringArray(plugin->mimeTypes, mimeType)) { if(stringFoundInStringArray(plugin->mimeTypes, mimeType)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment