diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-01 01:11:44 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-01 01:11:44 +0000 |
commit | 9fc4e67fefd3e782d57112b0f311db889f5a7ed9 (patch) | |
tree | c385ff6591cb790fa2ed0a7fe590c56fa0cb66a3 /src/inputPlugin.c | |
parent | aa2d56c81c3c7e83f827f6292bc5ec4f44881b93 (diff) | |
download | mpd-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 '')
-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)) { |