Revision 34b5d2c6 block/qcow.c

b/block/qcow.c
668 668
    int64_t total_size = 0;
669 669
    const char *backing_file = NULL;
670 670
    int flags = 0;
671
    Error *local_err = NULL;
671 672
    int ret;
672 673
    BlockDriverState *qcow_bs;
673 674

  
......
688 689
        return ret;
689 690
    }
690 691

  
691
    ret = bdrv_file_open(&qcow_bs, filename, NULL, BDRV_O_RDWR);
692
    ret = bdrv_file_open(&qcow_bs, filename, NULL, BDRV_O_RDWR, &local_err);
692 693
    if (ret < 0) {
694
        qerror_report_err(local_err);
695
        error_free(local_err);
693 696
        return ret;
694 697
    }
695 698

  

Also available in: Unified diff