IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18174


Ignore:
Timestamp:
Jun 17, 2008, 3:12:12 PM (18 years ago)
Author:
Paul Price
Message:

Ensuring numData is not "used uninitialised".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psTree.c

    r18145 r18174  
    124124    va_start(args, maxLeafContents);
    125125    psArray *coords = psArrayAlloc(dim); // Array of coordinates
    126     long numData;                       // Number of data points
     126    long numData = 0;                   // Number of data points
    127127    for (int i = 0; i < dim; i++) {
    128128        psVector *data = va_arg(args, psVector*);
Note: See TracChangeset for help on using the changeset viewer.