Commit 3be26eb9 authored by Pekka Pessi's avatar Pekka Pessi

Fixed C99-ism in sdp/sdp_parse.c.

A variable was declared in the middle of block.

darcs-hash:20051031160456-65a35-3b550aa25df3970db94854abb1492c9246c68173.gz
parent 3b5da8de
......@@ -1191,11 +1191,13 @@ static void parse_session_attr(sdp_parser_t *p, char *r, sdp_attribute_t **resul
else if (strcasecmp(name, "sendrecv") == 0)
p->pr_session_mode = sdp_sendrecv;
PARSE_ALLOC(p, sdp_attribute_t, a);
*result = a;
{
PARSE_ALLOC(p, sdp_attribute_t, a);
*result = a;
a->a_name = name;
a->a_value = value;
a->a_name = name;
a->a_value = value;
}
}
/* -------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment