]> granicus.if.org Git - rtmpdump/commitdiff
Initialize port
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 12 Mar 2010 07:38:17 +0000 (07:38 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 12 Mar 2010 07:38:17 +0000 (07:38 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@333 400ebc74-4327-4243-bc38-086b20814532

librtmp/parseurl.c

index c4b3525bc3029ed2a4d657306aad18f547c4c8d3..98d722ba962dec669da6ef803dda995a2c20a652 100644 (file)
@@ -37,6 +37,7 @@ bool RTMP_ParseURL(const char *url, int *protocol, char **host, unsigned int *po
        Log(LOGDEBUG, "Parsing...");
 
        *protocol = RTMP_PROTOCOL_RTMP;
+       *port = 0;
        playpath->av_len = 0;
        playpath->av_val = NULL;
        app->av_len = 0;