Changeset 14119

Show
Ignore:
Timestamp:
03/29/08 23:39:03 (3 months ago)
Author:
warmerdam
Message:

ensure rhs[] is properly initialized (#2300)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/alg/thinplatespline.cpp

    r10646 r14119  
    7474        for( i = 0; i < VIZGEOREF_MAX_VARS; i++ ) 
    7575        { 
    76             rhs[i] = (double *) VSIMalloc( sizeof(double) * new_max ); 
    77             coef[i] = (double *) VSIMalloc( sizeof(double) * new_max ); 
     76            rhs[i] = (double *) VSICalloc( sizeof(double), new_max ); 
     77            coef[i] = (double *) VSICalloc( sizeof(double), new_max ); 
    7878        } 
    7979    }