VirtualBox

Changeset 43897 in vbox


Ignore:
Timestamp:
Nov 16, 2012 1:41:28 PM (12 years ago)
Author:
vboxsync
Message:

Main/solaris: Fix a performance metrics crash for release builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/solaris/PerformanceSolaris.cpp

    r43835 r43897  
    571571        if (zh)
    572572        {
    573             unsigned int cChildren;
    574             nvlist_t **nvChildren, *nvRoot, *nvConfig = mZpoolGetConfig(zh, NULL);
    575             Assert(!nvlist_lookup_nvlist(nvConfig, ZPOOL_CONFIG_VDEV_TREE, &nvRoot));
    576             if (!nvlist_lookup_nvlist_array(nvRoot, ZPOOL_CONFIG_CHILDREN, &nvChildren, &cChildren))
     573            unsigned int cChildren = 0;
     574            nvlist_t **nvChildren  = NULL;
     575            nvlist_t *nvRoot       = NULL;
     576            nvlist_t *nvConfig     = mZpoolGetConfig(zh, NULL);
     577            if (   !nvlist_lookup_nvlist(nvConfig, ZPOOL_CONFIG_VDEV_TREE, &nvRoot)
     578                && !nvlist_lookup_nvlist_array(nvRoot, ZPOOL_CONFIG_CHILDREN, &nvChildren, &cChildren))
    577579            {
    578580                for (unsigned int i = 0; i < cChildren; ++i)
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