libavformat/rtsp.c:777: error: Uninitialized Value
  The value read from buf[_] was never initialized.

libavformat/rtsp.c:777:13: 
775. #endif
776.         /* test if last line */
777.         if (buf[0] == '\0')
                 ^
778.             break;
779.         p = buf;

static void
rtsp_read_reply (AVFormatContext *s, RTSPMessageHeader *reply,
                 unsigned char **content_ptr)
{
    RTSPState *rt = s->priv_data;
    char buf[4096], buf1[1024], *q;
    unsigned char ch;
    const char *p;
    int content_length, line_count = 0;
    unsigned char *content = NULL;
    memset(reply, 0, sizeof(*reply));
    rt->last_reply[0] = '\0';
    for(;;) {
        q = buf;
        for(;;) {
            if (url_readbuf(rt->rtsp_hd, &ch, 1) != 1)
                break;
            if (ch == '\n')
                break;
            if (ch == '$') {
                rtsp_skip_packet(s);
            } else if (ch != '\r') {
                if ((q - buf) < sizeof(buf) - 1)
                    *q++ = ch;
            }
        }
        *q = '\0';
#ifdef DEBUG
        printf("line='%s'\n", buf);
#endif
        if (buf[0] == '\0')
            break;
        p = buf;
        if (line_count == 0) {
            get_word(buf1, sizeof(buf1), &p);
            get_word(buf1, sizeof(buf1), &p);
            reply->status_code = atoi(buf1);
        } else {
            rtsp_parse_line(reply, p);
            av_strlcat(rt->last_reply, p,    sizeof(rt->last_reply));
            av_strlcat(rt->last_reply, "\n", sizeof(rt->last_reply));
        }
        line_count++;
    }
    if (rt->session_id[0] == '\0' && reply->session_id[0] != '\0')
        av_strlcpy(rt->session_id, reply->session_id, sizeof(rt->session_id));
    content_length = reply->content_length;
    if (content_length > 0) {
        content = av_malloc(content_length + 1);
        (void)url_readbuf(rt->rtsp_hd, content, content_length);
        content[content_length] = '\0';
    }
    if (content_ptr)
        *content_ptr = content;
    else
        av_free(content);
}
['static void\nrtsp_read_reply (AVFormatContext *s, RTSPMessageHeader *reply,\n                 unsigned char **content_ptr)\n{\n    RTSPState *rt = s->priv_data;\n    char buf[4096], buf1[1024], *q;\n    unsigned char ch;\n    const char *p;\n    int content_length, line_count = 0;\n    unsigned char *content = NULL;\n    memset(reply, 0, sizeof(*reply));\n    rt->last_reply[0] = \'\\0\';\n    for(;;) {\n        q = buf;\n        for(;;) {\n            if (url_readbuf(rt->rtsp_hd, &ch, 1) != 1)\n                break;\n            if (ch == \'\\n\')\n                break;\n            if (ch == \'$\') {\n                rtsp_skip_packet(s);\n            } else if (ch != \'\\r\') {\n                if ((q - buf) < sizeof(buf) - 1)\n                    *q++ = ch;\n            }\n        }\n        *q = \'\\0\';\n#ifdef DEBUG\n        printf("line=\'%s\'\\n", buf);\n#endif\n        if (buf[0] == \'\\0\')\n            break;\n        p = buf;\n        if (line_count == 0) {\n            get_word(buf1, sizeof(buf1), &p);\n            get_word(buf1, sizeof(buf1), &p);\n            reply->status_code = atoi(buf1);\n        } else {\n            rtsp_parse_line(reply, p);\n            av_strlcat(rt->last_reply, p,    sizeof(rt->last_reply));\n            av_strlcat(rt->last_reply, "\\n", sizeof(rt->last_reply));\n        }\n        line_count++;\n    }\n    if (rt->session_id[0] == \'\\0\' && reply->session_id[0] != \'\\0\')\n        av_strlcpy(rt->session_id, reply->session_id, sizeof(rt->session_id));\n    content_length = reply->content_length;\n    if (content_length > 0) {\n        content = av_malloc(content_length + 1);\n        (void)url_readbuf(rt->rtsp_hd, content, content_length);\n        content[content_length] = \'\\0\';\n    }\n    if (content_ptr)\n        *content_ptr = content;\n    else\n        av_free(content);\n}']