# HG changeset patch # User reimar # Date 1351805513 0 # Node ID 1d9aaca726723d9c13449f70c42715fc0b1b8ee1 # Parent ca073f3f4d4e41a52a17e43a31ab48b192fe50ff Check the correct variable for NULL. diff -r ca073f3f4d4e -r 1d9aaca72672 stream/http.c --- 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; }