Skip to content

Commit

Permalink
core: fix default drive and drive index value
Browse files Browse the repository at this point in the history
The default drive and drive index value should be set to 0 instead
of -1 in the DeviceResource constructor.

Fixes #1220: default drive index not set to 0
  • Loading branch information
frb121 committed Apr 3, 2020
1 parent 0577bcf commit e8a4e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/stored/device_resource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ DeviceResource::DeviceResource()
, query_crypto_status(false)
, collectstats(false)
, eof_on_error_is_eot(false)
, drive(-1)
, drive_index(-1)
, drive(0)
, drive_index(0)
, cap_bits{0}
, max_changer_wait(300)
, max_rewind_wait(300)
Expand Down

0 comments on commit e8a4e86

Please sign in to comment.