Skip to content

Commit

Permalink
tp: fix crash when parsing JSON traces
Browse files Browse the repository at this point in the history
Fixes: #911
Change-Id: Iff4e3f3aa6dfaa291ed8924cc22e2761ee862496
  • Loading branch information
LalitMaganti committed Oct 19, 2024
1 parent 37b4e06 commit 6715e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trace_processor/importers/common/track_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ TrackId TrackTracker::InternGlobalTrack(TrackClassification type) {
if (it)
return *it;

StringId name;
StringId name = kNullStringId;
if (type == TrackClassification::kTrigger)
name = context_->storage->InternString("Trace Triggers");
if (type == TrackClassification::kInterconnect)
Expand Down Expand Up @@ -705,7 +705,7 @@ TrackId TrackTracker::LegacyInternFuchsiaAsyncTrack(StringId name,
uint32_t upid,
int64_t correlation_id) {
return LegacyInternLegacyChromeAsyncTrack(name, upid, correlation_id, false,
StringId());
kNullStringId);
}

TrackId TrackTracker::LegacyInternLegacyChromeAsyncTrack(
Expand Down

0 comments on commit 6715e74

Please sign in to comment.