aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-01 01:11:44 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-01 01:11:44 +0000
commit9fc4e67fefd3e782d57112b0f311db889f5a7ed9 (patch)
treec385ff6591cb790fa2ed0a7fe590c56fa0cb66a3 /src
parentaa2d56c81c3c7e83f827f6292bc5ec4f44881b93 (diff)
downloadmpd-9fc4e67fefd3e782d57112b0f311db889f5a7ed9.tar.gz
mpd-9fc4e67fefd3e782d57112b0f311db889f5a7ed9.tar.xz
mpd-9fc4e67fefd3e782d57112b0f311db889f5a7ed9.zip
fix segfault when no mimeType in a stream
git-svn-id: https://svn.musicpd.org/mpd/trunk@1269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugin.c2
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)) {