Skip to content

Commit

Permalink
resolved aditya's questions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 21, 2020
1 parent 0b1a90f commit f0c1c9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ class HttpTraceContext : public HTTPTextFormat<T>

static TraceId GenerateTraceIdFromString(nostd::string_view trace_id)
{
uint8_t buf[kTraceIdBytes / 2];
uint8_t buf[kTraceIdBytes / 2] = {0};
GenerateBuffer(trace_id, kTraceIdBytes, buf);
return TraceId(buf);
}

static SpanId GenerateSpanIdFromString(nostd::string_view span_id)
{
uint8_t buf[kSpanIdBytes / 2];
uint8_t buf[kSpanIdBytes / 2] = {0};
GenerateBuffer(span_id, kSpanIdBytes, buf);
return SpanId(buf);
}
Expand Down

0 comments on commit f0c1c9d

Please sign in to comment.