mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-26 20:30:59 +01:00
drive-by: fix valgrind complaint about uninitialized memory
This commit is contained in:
parent
e93ad5d124
commit
5b2c237718
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ static void trace_inject_traceparent(void)
|
|||
static void trace_init(void) {
|
||||
if (active_spans)
|
||||
return;
|
||||
active_spans = malloc(sizeof(struct span) * MAX_ACTIVE_SPANS);
|
||||
active_spans = calloc(MAX_ACTIVE_SPANS, sizeof(struct span));
|
||||
|
||||
current = NULL;
|
||||
trace_inject_traceparent();
|
||||
|
|
Loading…
Add table
Reference in a new issue