IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2004, 9:58:06 AM (22 years ago)
Author:
desonia
Message:

fixed small bug in psTraceReset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psTrace.c

    r1641 r1700  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-08-27 21:45:42 $
     11 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-07 19:58:06 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    121121void psTraceReset()
    122122{
    123     componentFree(cRoot);
     123    psFree(cRoot);
    124124    cRoot = NULL;
    125125}
     
    152152
    153153    if (addNodeName[0] != '.') {
    154         printf("ERROR: failed to add %s to the root component tree.\n", addNodeName);
    155         exit(1);
     154        psAbort(__func__,"Failed to add %s to the root component tree.\n",
     155                addNodeName);
    156156    }
    157157
     
    178178            currentNode->subcomp = psRealloc(currentNode->subcomp,
    179179                                             (currentNode->n + 1) * sizeof(p_psComponent* ));
    180             currentNode->n = (currentNode->n) + 1;
     180            currentNode->n++;
    181181
    182182            if (pname == NULL) {
    183                 currentNode->subcomp[(currentNode->n) - 1] = componentAlloc(firstComponent, level);
     183                currentNode->subcomp[currentNode->n - 1] = componentAlloc(firstComponent, level);
    184184            } else {
    185                 currentNode->subcomp[(currentNode->n) - 1] = componentAlloc(firstComponent, currentNode->level);
    186             }
    187             currentNode = currentNode->subcomp[(currentNode->n) - 1];
     185                currentNode->subcomp[currentNode->n - 1] = componentAlloc(firstComponent, currentNode->level);
     186            }
     187            currentNode = currentNode->subcomp[currentNode->n - 1];
    188188        }
    189189    }
Note: See TracChangeset for help on using the changeset viewer.