mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user