Mercurial > mplayer.hg
changeset 17894:a91bdda1a478
Do not use ptr when it's NULL. CID 89
author | rtognimp |
---|---|
date | Sun, 19 Mar 2006 16:02:03 +0000 |
parents | aa38bf333f18 |
children | 155fa4f8b32a |
files | libmpdemux/realrtsp/rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/realrtsp/rtsp.c Sat Mar 18 20:02:47 2006 +0000 +++ b/libmpdemux/realrtsp/rtsp.c Sun Mar 19 16:02:03 2006 +0000 @@ -717,6 +717,7 @@ while (*answer) { if (!strncasecmp(*answer,tag,strlen(tag))) { ptr=strchr(*answer,':'); + if (!ptr) return NULL; ptr++; while(*ptr==' ') ptr++; return ptr;