VirtualBox

Changeset 32686 in vbox


Ignore:
Timestamp:
Sep 22, 2010 8:36:28 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66106
Message:

VBoxManage: don't pass NULL argv paramters to RTGetOpt (fixes public 7388)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r31539 r32686  
    292292        char *converted;
    293293        RTStrCurrentCPToUtf8(&converted, argv[i]);
    294         argv[i] = converted;
     294        if (converted)
     295            argv[i] = converted;
     296        else
     297            /* Conversion was not possible,probably due to invalid characters.
     298             * Keep in mind that we do RTStrFree on the whole array below. */
     299            argv[i] = RTStrDup(argv[i]);
    295300    }
    296301
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