Revision a18953fb

b/qemu-img.c
645 645
    const uint8_t *buf1;
646 646
    BlockDriverInfo bdi;
647 647
    QEMUOptionParameter *param = NULL, *create_options = NULL;
648
    QEMUOptionParameter *out_baseimg_param;
648 649
    char *options = NULL;
649 650
    const char *snapshot_name = NULL;
650 651

  
......
769 770
        goto out;
770 771
    }
771 772

  
773
    /* Get backing file name if -o backing_file was used */
774
    out_baseimg_param = get_option_parameter(param, BLOCK_OPT_BACKING_FILE);
775
    if (out_baseimg_param) {
776
        out_baseimg = out_baseimg_param->value.s;
777
    }
778

  
772 779
    /* Check if compression is supported */
773 780
    if (flags & BLOCK_FLAG_COMPRESS) {
774 781
        QEMUOptionParameter *encryption =

Also available in: Unified diff