Commit daad562c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Smooth: check FromCharset return

parent ad1bc948
...@@ -103,7 +103,7 @@ static bool isSmoothStreaming( stream_t *s ) ...@@ -103,7 +103,7 @@ static bool isSmoothStreaming( stream_t *s )
} }
peeked = FromCharset( encoding, peeked, 512 ); peeked = FromCharset( encoding, peeked, 512 );
if( strstr( peeked, needle ) != NULL ) if( peeked != NULL && strstr( peeked, needle ) != NULL )
ret = true; ret = true;
} }
free( peeked ); free( peeked );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment