fix segfault when no mimeType in a stream

git-svn-id: https://svn.musicpd.org/mpd/trunk@1269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-06-01 01:11:44 +00:00
parent aa2d56c81c
commit 9fc4e67fef

View File

@ -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)) {