From 6b3b406407d86220307fa0d8b5b9629772884b0a Mon Sep 17 00:00:00 2001 From: rtognimp Date: Mon, 19 Apr 2004 19:55:37 +0000 Subject: [PATCH] 10l: don't run strcmp if arg is NULL Pathc by adland git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12237 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/network.c b/libmpdemux/network.c index 731b0d098f..9694d48fb8 100644 --- a/libmpdemux/network.c +++ b/libmpdemux/network.c @@ -769,7 +769,7 @@ extension=NULL; // If content-type == video/nsv we most likely have a winamp video stream // otherwise it should be mp3. if there are more types consider adding mime type // handling like later - if( !strcmp((field_data = http_get_field(http_hdr, "content-type")),"video/nsv")) + if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && !strcmp(field_data, "video/nsv")) *file_format = DEMUXER_TYPE_NSV; else *file_format = DEMUXER_TYPE_AUDIO;