Skip to content

Commit

Permalink
rtp_relay: Make gcc-10 happy (uninitialized struct)
Browse files Browse the repository at this point in the history
if ((tv.flags & PV_VAL_STR) == 0) {
     ~~^~~~~~
    rtp_relay_ctx.c:2937:9: error: ‘tv.flags’ may be used uninitialized
        in this function [-Werror=maybe-uninitialized]
  • Loading branch information
liviuchircu committed Jun 13, 2024
1 parent 6ced3fb commit 2bea262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rtp_relay/rtp_relay_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2912,7 +2912,7 @@ static int rtp_relay_param_get(struct sip_msg *msg, pv_param_t *ip,
pv_value_t *res, void *_params, void *extra)
{
int p;
pv_value_t tv;
pv_value_t tv = {0};
int size = (int)(long)extra;
struct rtp_relay_route_param *params = _params;
if (size <= 0)
Expand Down

0 comments on commit 2bea262

Please sign in to comment.