Skip to content

Commit

Permalink
nfdc: fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Jan 14, 2025
1 parent 7245ddb commit 8544937
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/nfdc/nfdc_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ func (n *Nfdc) printCtrlResponse(res *mgmt.ControlResponse) {
fmt.Printf("Status=%d (%s)\n", res.Val.StatusCode, res.Val.StatusText)

// iterate over parameters in sorted order
if res.Val.Params == nil {
return
}
params := res.Val.Params.ToDict()
keys := make([]string, 0, len(params))
for key := range params {
Expand Down

0 comments on commit 8544937

Please sign in to comment.