Mercurial > mplayer.hg
diff stream/http.c @ 35229:1d9aaca72672
Check the correct variable for NULL.
| author | reimar |
|---|---|
| date | Thu, 01 Nov 2012 21:31:53 +0000 |
| parents | 06847bdbe4bc |
| children | 8f6d3f8ffa61 |
line wrap: on
line diff
--- a/stream/http.c Thu Nov 01 21:24:42 2012 +0000 +++ b/stream/http.c Thu Nov 01 21:31:53 2012 +0000 @@ -396,7 +396,7 @@ // Get the reason phrase ptr = strstr( hdr_ptr, "\n" ); - if( hdr_ptr==NULL ) { + if( ptr==NULL ) { mp_msg(MSGT_NETWORK,MSGL_ERR,"Malformed answer. Unable to get the reason phrase.\n"); return -1; }
