Do not use ptr when it's NULL. CID 89

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17895 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp
2006-03-19 16:02:03 +00:00
parent 7422f3d2b2
commit cb05addbaf
+1
View File
@@ -717,6 +717,7 @@ char *rtsp_search_answers(rtsp_t *s, const char *tag) {
while (*answer) {
if (!strncasecmp(*answer,tag,strlen(tag))) {
ptr=strchr(*answer,':');
if (!ptr) return NULL;
ptr++;
while(*ptr==' ') ptr++;
return ptr;