VirtualBox

Changeset 17055 in vbox


Ignore:
Timestamp:
Feb 24, 2009 11:43:36 AM (16 years ago)
Author:
vboxsync
Message:

OVF: don't crash if href is empty in OVF XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r17033 r17055  
    15001500                    {
    15011501                        /* If the href is empty use the VM name as filename */
    1502                         Utf8Str strFilename = di.strHref.c_str();
    1503                         if (di.strHref.c_str()[0] == 0)
     1502                        Utf8Str strFilename = di.strHref;
     1503                        if (!strFilename.length())
    15041504                            strFilename = Utf8StrFmt("%s.vmdk", nameVBox.c_str());
    15051505                        /* Construct a unique target path */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette