Skip to content

Commit

Permalink
Fix: use of uninitialized map
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-hynes committed Jun 10, 2024
1 parent 56bf773 commit 6ce89cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psiphon/common/inproxy/webrtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func (conn *webRTCConn) getICECandidatePairsSummary() string {
conn.mutex.Lock()
defer conn.mutex.Unlock()

var stateCounts map[webrtc.StatsICECandidatePairState]int
stateCounts := map[webrtc.StatsICECandidatePairState]int{}

statsReport := conn.peerConnection.GetStats()
for key, stats := range statsReport {
Expand Down

0 comments on commit 6ce89cd

Please sign in to comment.