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

Fixed C99-ism in sdp/sdp_parse.c.

A variable was declared in the middle of block.

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;
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