Skip to content

Commit

Permalink
dird: fixed a wrong switch condition
Browse files Browse the repository at this point in the history
- corrected a switch statement on a false struct variable
  (has to be vol_list_t::slot_type, not vol_list_t::slot_status)
  in file dird/sd_cmds.cc:485
  • Loading branch information
franku committed May 24, 2019
1 parent 33c4afa commit 52ef663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/dird/sd_cmds.cc
Expand Up @@ -482,7 +482,7 @@ dlist *native_get_vol_list(UaContext *ua, StorageResource *store, bool listall,
break;
case 'F':
vl->slot_status = slot_status_full;
switch (vl->slot_status) {
switch (vl->slot_type) {
case slot_type_storage:
case slot_type_import:
if (field4) {
Expand Down

0 comments on commit 52ef663

Please sign in to comment.