Skip to content

Commit

Permalink
MT#55283 fix null pointer
Browse files Browse the repository at this point in the history
Change-Id: I98e6e17e2da91f66048f209d6eaed42d652f8faf
Warned-by: Coverity
  • Loading branch information
rfuchs committed Aug 17, 2024
1 parent ac41df5 commit 227a64c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/call_interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -2689,7 +2689,6 @@ void ng_call_stats(ng_command_ctx_t *ctx, call_t *call, const str *fromtag, cons
struct call_monologue *ml;
struct call_stats t_b;
parser_arg ssrc = {0};
const ng_parser_t *parser = ctx->parser_ctx.parser;

if (!totals)
totals = &t_b;
Expand All @@ -2700,6 +2699,8 @@ void ng_call_stats(ng_command_ctx_t *ctx, call_t *call, const str *fromtag, cons

call_ngb_hold_ref(call, ctx->ngbuf);

const ng_parser_t *parser = ctx->parser_ctx.parser;

parser->dict_add_int(ctx->resp, "created", call->created.tv_sec);
parser->dict_add_int(ctx->resp, "created_us", call->created.tv_usec);
parser->dict_add_int(ctx->resp, "last signal", call->last_signal);
Expand Down

0 comments on commit 227a64c

Please sign in to comment.