Skip to content

Commit

Permalink
Merge pull request #387 from codenrhoden/bugfix/nil_deref_lsx_localde…
Browse files Browse the repository at this point in the history
…vices

Fix nil deref for lsx localdevices
  • Loading branch information
akutz authored Jan 11, 2017
2 parents e46cfc3 + 3856df5 commit 1abc39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lsx/lsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func Run() {
ScanType: apitypes.ParseDeviceScanType(args[3]),
Opts: store,
})
opResult.Driver = driverName
if opErr != nil {
err = opErr
} else {
opResult.Driver = driverName
result = opResult
}
} else if strings.EqualFold(cmd, apitypes.LSXCmdWaitForDevice) {
Expand Down

0 comments on commit 1abc39c

Please sign in to comment.